You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -114,7 +115,7 @@ should not be pluralized, even if many data points are recorded.
114
115
*`system.paging.faults`, `system.disk.operations`, and `system.network.packets`
115
116
should be pluralized, even if only a single data point is recorded.
116
117
117
-
#### Use `count` Instead of Pluralization
118
+
#### Use `count` Instead of Pluralization for UpDownCounters
118
119
119
120
If the value being recorded represents the count of concepts signified
120
121
by the namespace then the metric should be named `count` (within its namespace).
@@ -125,6 +126,21 @@ to the processes then to represent the count of the processes we can have a metr
125
126
`system.processes.count`. The suffix `count` here indicates that it is the count of
126
127
`system.processes`.
127
128
129
+
This rule SHOULD only be applied to UpDownCounters, since (monotonic) Counters have
130
+
`_total` appended to their names when they are
131
+
[mapped to Prometheus](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.21.0/specification/compatibility/prometheus_and_openmetrics.md#otlp-metric-points-to-prometheus),
132
+
which would lead to `_count_total`.
133
+
134
+
#### Do not use `total`
135
+
136
+
Counters SHOULD NOT append `_total` to their names. Counters have `_total` appended to their names when they are [mapped to Prometheus](../../compatibility/prometheus_and_openmetrics.md#otlp-metric-points-to-prometheus),
137
+
which would lead to `_total_total`. The reason that the Prometheus mapping cannot
138
+
suppress adding the duplicate `_total` is because then the mapping wouldn't be
139
+
bidirectional.
140
+
141
+
UpDownCounters SHOULD NOT use `_total` either because then they will look like
0 commit comments