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