Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created March 26, 2014 17:15
Show Gist options
  • Save marianogg9/9788382 to your computer and use it in GitHub Desktop.
Save marianogg9/9788382 to your computer and use it in GitHub Desktop.
output.conf
output{
elasticsearch {
cluster => "logstash"
host => "ES_hostname"
embedded => "false"
}
statsd {
type => "loadbalancer"
host => "statsd_remote_host"
port => 8126
debug => true
namespace => "logstash"
timing => [ "loadbalancer.%{tags}.servetime", "%{reqmusecst}" ]
increment => "loadbalancer.%{tags}.response.%{response}"
count => [ "loadbalancer.%{tags}.bytes", "%{bytes}" ]
}
}
statsd/config.js
{
graphitePort: 2003,
graphiteHost: "graphite_hostname",
port: 8126,
backends: [ "./backends/graphite" ],
flushInterval: 60000,
debug: true,
dumpMessages: true,
log: "/var/log/statsd.log"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment