Skip to content

Commit 6f84b7c

Browse files
authored
Prom compatibility: allow disabling the addition of _total suffixes on prometheus counters (#3590)
1 parent 8ae0f6f commit 6f84b7c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ release.
1919

2020
### Compatibility
2121

22+
- Prometheus exporters SHOULD provide configuration to disable the addition of `_total` suffixes.
23+
([#3590](https://github.com/open-telemetry/opentelemetry-specification/pull/3590))
24+
2225
### SDK Configuration
2326

2427
### Common

specification/compatibility/prometheus_and_openmetrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ An [OpenTelemetry Gauge](../metrics/data-model.md#gauge) MUST be converted to a
283283
- The new data point's start time must match the time of the accumulated data point. If not, see [detecting alignment issues](../metrics/data-model.md#sums-detecting-alignment-issues).
284284
- Otherwise, it MUST be dropped.
285285

286-
If the metric name for monotonic Sum metric points does not end in a suffix of `_total` a suffix of `_total` MUST be added, otherwise the name MUST remain unchanged.
286+
If the metric name for monotonic Sum metric points does not end in a suffix of `_total` a suffix of `_total` MUST be added by default, otherwise the name MUST remain unchanged. Exporters SHOULD provide a configuration option to disable the addition of `_total` suffixes.
287287
Monotonic Sum metric points with `StartTimeUnixNano` should export the `{name}_created` metric as well.
288288

289289
### Histograms

0 commit comments

Comments
 (0)