From e5a80db605bd772f5d4b13fe6eab61749a511933 Mon Sep 17 00:00:00 2001 From: Loc Mai Date: Wed, 11 May 2022 01:12:11 +0700 Subject: [PATCH] fix: condition to drop Signed-off-by: Loc Mai --- exporter/prometheusexporter/accumulator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/prometheusexporter/accumulator.go b/exporter/prometheusexporter/accumulator.go index 1a10b3332046..5ad9c363e36a 100644 --- a/exporter/prometheusexporter/accumulator.go +++ b/exporter/prometheusexporter/accumulator.go @@ -178,7 +178,7 @@ func (a *lastValueAccumulator) accumulateSum(metric pmetric.Metric, il pcommon.I } // Drop non-monotonic and non-cumulative metrics - if doubleSum.AggregationTemporality() == pmetric.MetricAggregationTemporalityDelta || !doubleSum.IsMonotonic() { + if doubleSum.AggregationTemporality() == pmetric.MetricAggregationTemporalityDelta && !doubleSum.IsMonotonic() { return }