rcrowley / go-metrics

Go port of Coda Hale's Metrics library
Other
3.43k stars 493 forks source link

[Question] Count by range of timer metrics? #284

Open ericreis opened 3 years ago

ericreis commented 3 years ago

Hi, is there any way that I can the ranges with their counts for a timer metric? Something like this:

0-10ms: 9123 requests
10-50ms: 234 requests
50-100ms: 67 requests
100-200ms: 89 requests
200-500ms: 4 requests
500-1000ms: 3 requests
1000ms+: 7 requests

I'm sorry if this is a duplicate question. I searched for anything like this, but couldn't find any issue about it.