I intend to maintain this fork of alexcesaro/statsd for the foreseeable future, as I use this library in my own projects. Backwards compatibility is my highest priority. I did attempt to look for existing maintained forks, but the few I investigated all made breaking changes. I will be adding new features, but only when I have an immediate use case, and I will do my best to keep to the spirit of the original implementation.
No releases but master
will remain stable™.
Changelog
-
2020-08-27 - Fixed bug in
statsd.Tags
identified by alexcesaro#41 -
2019-05-22 - Added support for arbitrary output streams via new
statsd.WriteCloser
option -
2019-05-22 - Added support for simplified inline flush logic via new
statsd.InlineFlush
option -
2019-05-26 - Fixed bug causing trailing newlines to be removed for streaming (non-udp) connections
statsd is a simple and efficient Statsd client.
See the benchmark for a comparison with other Go StatsD clients.
- 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
- 100% test coverage
- Versioned API using gopkg.in
https://godoc.org/gopkg.in/alexcesaro/statsd.v2
go get gopkg.in/alexcesaro/statsd.v2
See the examples in the documentation.
Do you have any question the documentation does not answer? Is there a use case that you feel is common and is not well-addressed by the current API?
If so you are more than welcome to ask questions in the thread on golang-nuts or open an issue or send a pull-request here on Github.