metric
metric copied to clipboard
Minimal metrics for Go (counter/gauge/histogram). No dependencies. Compatible with expvar. Web UI included.
Sum() method for testing would be nice.. e.g for timeseries.
Title has it
I think this solution may be more optimal than the one you have now. https://stackoverflow.com/questions/8180336/histogram-approximation-for-streaming-data/8369381 It also consolidates bins when a sample doesn't fit into the last bin, but otherwise...
hi, is it possible to expose page var or to provide something to hack it ? thanks.
This PR reduces the amount of heap allocations made in the `histogram.Add` and `histogram.trim` functions. In this library, we have a small constant for `maxBins`, so it's better to trade...