Modify Prometheus exporter to translate non-monotonic Sums into gauges by brettimus · Pull Request #3306 · open-telemetry/opentelemetry-python

@brettimus mentioned this pull request

May 10, 2023

@brettimus brettimus marked this pull request as ready for review

May 10, 2023 16:29

This was referenced

May 10, 2023

@brettimus @brett-fiberplane

Add unit tests for translating monotonic and non-monotonic Sums to prometheus metrics

Update prometheus metric translation to match spec

Added a check for the aggregation temporality of a Sum.
"If the aggregation temporality is cumulative and the sum is non-monotonic, it MUST be converted to a Prometheus Gauge."

Update changelog

@brettimus @brett-fiberplane

@brettimus

@srikanthccv

srikanthccv

@brettimus

srikanthccv

@brettimus @brett-fiberplane

@brettimus

@srikanthccv

@brettimus

@srikanthccv srikanthccv added the PR:please merge

This PR is ready to be merged by a Maintainer (has enough valid approvals, successful build, etc.)

label

Jul 17, 2023

@ocelotl