Skip to content

pabowers/statsd

 
 

Repository files navigation

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

Build Status Code Coverage Documentation

Introduction

statsd is a simple and efficient Statsd client.

See the benchmark for a comparison with other Go StatsD clients.

Features

  • 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

Documentation

https://godoc.org/gopkg.in/alexcesaro/statsd.v2

Download

go get gopkg.in/alexcesaro/statsd.v2

Example

See the examples in the documentation.

License

MIT

Contribute

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.

About

An efficient Statsd Go client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%