Forked from https://github.com/alexcesaro/statsd on 2017-12-23 to add some missing bits. Mostly just fixing some of the filed issues, and merging some PR code. The upstream project is non-maintained and can be considered dead. For my own sake, I removed some of the gopkg branch anchors to reduce complexity.
statsd is a simple and efficient Statsd client.
- Supports all StatsD metrics: counter, gauge, timing and set
- Supports InfluxDB and Datadog tags
- Fast and GC-friendly: all functions for sending metrics do not allocate
- Efficient: metrics are buffered by default
- Simple and clean API
- No 3rd-party dependencies
- An annoying hyphen in the name
- Options for lazy connection and regular DNS/connection re-resolving
The basic usage can be very simple, see example_test. The documentation illustrates the more complex API methods and options.
https://godoc.org/github.com/AstromechZA/go-statsd
$ go get github.com/AstromechZA/go-statsd