github.com/mailgun/metrics
go get github.com/mailgun/metrics

github.com/mailgun/metrics

Go library for emitting metrics to StatsD.

by mailgun

v0.0.0-20170714162148-fd99b46995bd (see all)License:Apache-2.0, MIT
go get github.com/mailgun/metrics
Readme

metrics

Go library for emitting metrics to StatsD.

Originally: https://github.com/cactus/go-statsd-client

Usage example

m = metrics.NewWithOptions("hostname:8125",
                           "servicename.hostname",
                           metrics.Options{UseBuffering: true})

m.Inc(m.Metric("cache", "hit"), int64(hit), 1)
m.Gauge(m.Metric("cache", "size"), int64(len(cache)), 1)

GitHub Stars

11

LAST COMMIT

5yrs ago

MAINTAINERS

0

CONTRIBUTORS

6

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.0.0-20141110213611-a980c2a498b0
2yrs ago
v0.0.0-20141110224236-f8741d1789ec
3yrs ago
v0.0.0-20170714162148-fd99b46995bd
3yrs ago
v0.0.0-20150124003306-2b3c4565aafd
3yrs ago
No alternatives found
No tutorials found
Add a tutorial