StatsD Server for Librato
This is an implementation of Etsy's StatsD written in Go that submits data to Librato Metrics or to a local HTTP server.
This was forked from jbuchbinder/statsd-go and altered to provide support for Librato as a submission backend. Besides the Librato backend it now also contains a backend for locally displaying the data from a HTTP server. This is helpful for development environments that make use of statsd.
Usage
Usage of statsd:
-address="0.0.0.0:8125": udp listen address
-debug=false: enable logging of inputs and submissions
-flush=60: interval at which data is sent to librato (in seconds)
-percentiles="": comma separated list of percentiles to calculate for timers (eg. "95,99.5")
-source="": librato api source (LIBRATO_SOURCE)
-token="": librato api token (LIBRATO_TOKEN)
-user="": librato api username (LIBRATO_USER)
-httpAddress="127.0.0.1:8126": Used for starting a HTTP server in local mode
-url="https://metrics-api.librato.com/v1/metrics"
-address="0.0.0.0:8125": UDP service address
-debug=false: Enable Debugging
-flush=30: Flush Interval (seconds)
-token="": Librato API Token
-user="": Librato Username
Local HTTP Server for StatsD
Installation
From Source:
Check out and run "make build"
From Binary:
Binary releases are available for linux/amd64 and darwin/amd64. See the releases page for the latest downloads.
With Chef:
There's a cookbook! See statsd-librato-cookbook.
Credits
This was forked from jbuchbinder/statsd-go and altered to provide support for Librato as a submission backend.
License
MIT License, see LICENSE for details.