|
|
@ -5,7 +5,7 @@ go-metrics |
|
|
|
|
|
|
|
|
|
|
|
Go port of Coda Hale's Metrics library: <https://github.com/dropwizard/metrics>. |
|
|
|
Go port of Coda Hale's Metrics library: <https://github.com/dropwizard/metrics>. |
|
|
|
|
|
|
|
|
|
|
|
Documentation: <http://godoc.org/github.com/rcrowley/go-metrics>. |
|
|
|
Documentation: <https://godoc.org/github.com/rcrowley/go-metrics>. |
|
|
|
|
|
|
|
|
|
|
|
Usage |
|
|
|
Usage |
|
|
|
----- |
|
|
|
----- |
|
|
@ -128,7 +128,7 @@ go stathat.Stathat(metrics.DefaultRegistry, 10e9, "example@example.com") |
|
|
|
|
|
|
|
|
|
|
|
Maintain all metrics along with expvars at `/debug/metrics`: |
|
|
|
Maintain all metrics along with expvars at `/debug/metrics`: |
|
|
|
|
|
|
|
|
|
|
|
This uses the same mechanism as [the official expvar](http://golang.org/pkg/expvar/) |
|
|
|
This uses the same mechanism as [the official expvar](https://golang.org/pkg/expvar/) |
|
|
|
but exposed under `/debug/metrics`, which shows a json representation of all your usual expvars |
|
|
|
but exposed under `/debug/metrics`, which shows a json representation of all your usual expvars |
|
|
|
as well as all your go-metrics. |
|
|
|
as well as all your go-metrics. |
|
|
|
|
|
|
|
|
|
|
|