Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Oct 18, 2022
1 parent b2acef5 commit c3abcda
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions specification/metrics/data-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -1469,9 +1469,12 @@ in keys).
#### Metric Metadata

Prometheus SDK exporters MUST NOT allow duplicate UNIT, HELP, or TYPE
comments for the same metric name to be present on the Prometheus endpoint.
Exporters MUST drop metrics to prevent conflicting TYPE comments, but
SHOULD NOT drop metrics as a result of conflicting UNIT or HELP comments.
comments for the same metric name to be returned in a single scrape of the
Prometheus endpoint. Exporters MUST drop entire metrics to prevent conflicting
TYPE comments, but SHOULD NOT drop metric points as a result of conflicting
UNIT or HELP comments. Instead, all but one of the conflicting UNIT and HELP
comments (but not metric points) SHOULD be dropped. If dropping a comment or
metric points, the exporter SHOULD warn the user through error logging.

The Name of an OTLP metric MUST be added as the
[OpenMetrics MetricFamily Name](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#metricfamily),
Expand Down

0 comments on commit c3abcda

Please sign in to comment.