diff --git a/exporters/prometheus/exporter.go b/exporters/prometheus/exporter.go index 2cb23cc19fb..75e29bb67c1 100644 --- a/exporters/prometheus/exporter.go +++ b/exporters/prometheus/exporter.go @@ -190,7 +190,7 @@ func addSumMetric[N int64 | float64](ch chan<- prometheus.Metric, sum metricdata if !sum.IsMonotonic { valueType = prometheus.GaugeValue } - if sum.IsMonotonic { + if sum.IsMonotonic && !strings.HasSuffix(name, counterSuffix) { // Add _total suffix for counters name += counterSuffix }