Ruby implementation of statsd
APACHE-2.0 License
statsd
is a graphite frontend that aggregates data. For more information,
see an Etsy blog post
introducing the statsd concept.
see PROTOCOL.md. It's basically compatible with all of the other major
statsd implementations of timers
, gauges
, and counters
.
This has had a lot of run time in production against a RabbitMQ server, publishing to a topic exchange. If you have run other configurations successfully, please drop me a line and I'll note them here.
If you are using AMQP as a transport for graphite metrics to carbon, this implementation of statsd sends metrics in the body name (not as the routing key), so make sure your carbon configuration has:
AMQP_METRIC_NAME_IN_BODY = True
An example config file is included, along with comments about each option.
Please don't run statsd as root.
Make sure daemonize
is set to false
in the config file, and in
your run file, drop privs and run statsd:
#!/bin/sh
user="statsd"
config="/etc/statsd.conf"
su $user -c "exec /usr/bin/statsd $config"
TODO. Probably should add pidfile support, too.