Compare commits
No commits in common. "c18b992f04f6116cd79aaa072b75beb3178e66b4" and "3122b6e63078a43c33f7c956ef1fe4d0fc561293" have entirely different histories.
c18b992f04
...
3122b6e630
1 changed files with 1 additions and 3 deletions
|
@ -193,12 +193,10 @@ 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 {
|
||||||
cumulativeCount++
|
buckets[bound]++
|
||||||
}
|
}
|
||||||
buckets[bound] += cumulativeCount
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue