Skip to content

Commit

Permalink
specify what to do with non-string attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Feb 3, 2022
1 parent 11f114b commit aaf9295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specification/metrics/datamodel.md
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ The following OTLP data points must be dropped:

#### Metric Attributes

OpenTelemetry Metric Attributes MUST be converted to [Prometheus labels](https://Prometheus.io/docs/concepts/data_model/#metric-names-and-labels). In Prometheus, metric labels must match the following regex: `[a-zA-Z_:]([a-zA-Z0-9_:])*`. Metrics
OpenTelemetry Metric Attributes MUST be converted to [Prometheus labels](https://Prometheus.io/docs/concepts/data_model/#metric-names-and-labels). String Attribute values are converted directly to Metric Attributes, and non-string Attribute values SHOULD be replaced with an empty string. In Prometheus, metric labels must match the following regex: `[a-zA-Z_:]([a-zA-Z0-9_:])*`. Metrics
from OpenTelemetry with unsupported Attribute names SHOULD replace invalid characters with the `_` character. This
may cause ambiguity in scenarios where multiple similar-named attributes share invalid characters at the same
location. In such unlikely cases, either value MAY be used.
Expand Down

0 comments on commit aaf9295

Please sign in to comment.