From 98ac1acabe7c39973071d239c12b5aaf05fbd0e9 Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Tue, 11 Jul 2023 13:54:23 +0000 Subject: [PATCH] Prom compat: allow disabling the addition of _total suffixes on prometheus counters --- specification/compatibility/prometheus_and_openmetrics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compatibility/prometheus_and_openmetrics.md b/specification/compatibility/prometheus_and_openmetrics.md index 50db207ecf2..836a66ddba4 100644 --- a/specification/compatibility/prometheus_and_openmetrics.md +++ b/specification/compatibility/prometheus_and_openmetrics.md @@ -276,7 +276,7 @@ An [OpenTelemetry Gauge](../metrics/data-model.md#gauge) MUST be converted to a - 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). - Otherwise, it MUST be dropped. -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. +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. Monotonic Sum metric points with `StartTimeUnixNano` should export the `{name}_created` metric as well. ### Histograms