Skip to content

Commit

Permalink
otelcol.exporter.prometheus: log dropped delta sum (#6764)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeschkies authored Mar 26, 2024
1 parent 19b05d2 commit 5be00e4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ func (conv *Converter) consumeSum(app storage.Appender, memResource *memorySerie
case m.Sum().AggregationTemporality() == pmetric.AggregationTemporalityCumulative && !m.Sum().IsMonotonic():
convType = textparse.MetricTypeGauge
case m.Sum().AggregationTemporality() == pmetric.AggregationTemporalityDelta && m.Sum().IsMonotonic():
level.Debug(conv.log).Log("msg", "dropped unsupported delta sum")
// Drop non-cumulative summaries for now, which is permitted by the spec.
//
// TODO(rfratto): implement delta-to-cumulative for sums.
Expand Down

0 comments on commit 5be00e4

Please sign in to comment.