Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prom compatibility: allow disabling the addition of _total suffixes on prometheus counters #3590

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

dashpole
Copy link
Contributor

Part of open-telemetry/opentelemetry-go#4305

Motivation

When migrating from OpenCensus to OpenTelemetry, and using Prometheus exporters, it causes a breaking change in the metric name for counters that were not complying with Prometheus naming recommendations. This is because OpenCensus does not add _total suffixes for counters. For example, the metric my.metric.foo became my_metric_foo in OpenCensus. But in OpenTelemetry, it now becomes my_metric_foo_total.

Changes

Prometheus exporters should allow disabling the addition of _total suffixes through configuration.

cc @open-telemetry/wg-prometheus @jmacd @jsuereth

@reyang reyang merged commit 6f84b7c into open-telemetry:main Jul 13, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants