Compare commits
2 commits
3122b6e630
...
c18b992f04
Author | SHA1 | Date | |
---|---|---|---|
c18b992f04 | |||
3a1e4fdc3c |
1 changed files with 3 additions and 1 deletions
|
@ -193,10 +193,12 @@ func (m *Metrics) collectReqeustDataMetrics(ch chan<- prometheus.Metric, queue *
|
||||||
sum += latency
|
sum += latency
|
||||||
count++
|
count++
|
||||||
|
|
||||||
|
var cumulativeCount uint64
|
||||||
for _, bound := range bucketBounds {
|
for _, bound := range bucketBounds {
|
||||||
if latency <= bound {
|
if latency <= bound {
|
||||||
buckets[bound]++
|
cumulativeCount++
|
||||||
}
|
}
|
||||||
|
buckets[bound] += cumulativeCount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue