This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -XDELETE 'http://localhost:9200/metrics' | |
| curl -XPUT 'http://localhost:9200/metrics/' -d ' | |
| { | |
| "settings" : { | |
| "index" : { | |
| "analysis" : { | |
| "analyzer" : { | |
| "metricanalyser" : { | |
| "type" : "custom", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <!-- this works from within the examples folder --> | |
| <link href="../src/nv.d3.css" rel="stylesheet" type="text/css"> | |
| <style> | |
| body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # Script to use with tcollector and OpenTSDB | |
| # to grab metrics from a java process using | |
| # jolokia. | |
| # | |
| # Author: https://github.com/stuart-warren | |
| # | |
| # | |
| # see: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CQL: | |
| DESCRIBE KEYSPACE kairosdb ; | |
| ALTER KEYSPACE kairosdb WITH replication = {'class': 'NetworkTopologyStrategy', 'dc1': 2, 'dc2': 2 }; | |
| Get metrics: | |
| curl -XPOST 'http://localhost:8080/api/v1/datapoints/query' -d ' | |
| { | |
| "metrics": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <link href="static/novus-nvd3-f74b4de/src/nv.d3.css" rel="stylesheet" type="text/css"> | |
| <style> | |
| body { | |
| overflow-y:scroll; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create a log format called 'logstash_json' that emits, in json, the parts of an http | |
| # request I care about. For more details on the features of the 'LogFormat' | |
| # directive, see the apache docs: | |
| # http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats | |
| # http://cookbook.logstash.net/recipes/apache-json-logs/ | |
| LogFormat "{ \"@timestamp\": \"%{%Y-%m-%dT%H:%M:%S%z}t\", \"@message\": \"%m %H %U%q %s\", \"@fields\": { \"client\": \"%a\", \"duration_usec\": %D, \"status\": %s, \"request\": \"%U%q\", \"method\": \"%m\", \"protocol\": \"%H\", \"referrer\": \"%{Referer}i\", \"user-agent\": \"%{User-agent}i\" } }" logstash_json | |
| # Apache 2.4 adds sub-second precision logging | |
| # http://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats | |
| # LogFormat "{ \"@timestamp\": \"%{%Y-%m-%dT%H:%M:%S}t.%{msec_frac}t%{%z}t\", \"@message\": \"%m %H %U%q %s\", \"@fields\": { \"client\": \"%a\", \"duration_usec\": %D, \"status\": %s, \"request\": \"%U%q\", \"method\": \"%m\", \"protocol\": \"%H\", \"referrer\": \"%{Refer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -xe | |
| # | |
| # sudo gem install fpm | |
| # sudo apt-get install curl | |
| # # Put this script in a folder called tomcat-packaging | |
| # ./mkdeb.sh 7.0.40 | |
| # ./mkdeb.sh 6.0.37 | |
| # | |
| VERSION=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # from https://github.com/jordansissel/fpm/wiki/ConvertingGems | |
| mkdir -p /tmp/gems | |
| gem install --no-ri --no-rdoc --install-dir /tmp/gems/ capistrano | |
| cd /tmp | |
| find /tmp/gems/cache -name '*.gem' | xargs -rn1 fpm -d ruby -d rubygems --prefix /var/lib/gems/1.8 -s gem -t deb | |
| # upload debs to apt repo | |
| sudo apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| input { | |
| log4j { | |
| port => 56445 | |
| type => "log4j" | |
| } | |
| } | |
| output { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| APP='python-cql' | |
| # VERSION=1.4.0 # I assume this is worked out itself? | |
| ITERATION='1' | |
| # -v $VERSION \ | |
| rm -f ${APP}_*_all.deb | |
| fpm \ | |
| -n $APP \ | |
| --iteration ${ITERATION} \ |
OlderNewer