diff --git a/internal/exporter/metrics.go b/internal/exporter/metrics.go index 8f6d036..f672de9 100644 --- a/internal/exporter/metrics.go +++ b/internal/exporter/metrics.go @@ -193,10 +193,12 @@ func (m *Metrics) collectReqeustDataMetrics(ch chan<- prometheus.Metric, queue * sum += latency count++ + var cumulativeCount uint64 for _, bound := range bucketBounds { if latency <= bound { - buckets[bound]++ + cumulativeCount++ } + buckets[bound] += cumulativeCount } }