Skip to content

Commit

Permalink
don't add unit if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Jan 4, 2023
1 parent 5504c64 commit 84628ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion specification/compatibility/prometheus_and_openmetrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@ The Unit of an OTLP metric point SHOULD be converted to the equivalent unit in P
* Converting "foo/bar" to "foo_per_bar".

The resulting unit SHOULD be added to the metric as
[OpenMetrics UNIT metadata](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#metricfamily) and as a suffix to the metric name, or the unit MUST be omitted. The unit suffix comes before any type-specific suffixes.
[OpenMetrics UNIT metadata](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#metricfamily)
and as a suffix to the metric name unless the metric name already contains the
unit, or the unit MUST be omitted. The unit suffix comes before any
type-specific suffixes.

The description of an OTLP metrics point MUST be added as
[OpenMetrics HELP metadata](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#metricfamily).
Expand Down

0 comments on commit 84628ab

Please sign in to comment.