Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ release.

### Compatibility

- Stabilize sections of Prometheus Metrics Exporter.
- Clarify resource attributes configuration.
([#5084](https://github.com/open-telemetry/opentelemetry-specification/pull/5084))

### SDK Configuration

### Supplementary Guidelines
Expand Down
13 changes: 6 additions & 7 deletions specification/metrics/sdk_exporters/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ linkTitle: Prometheus
* [Host](#host)
* [Port](#port)
* [Default Aggregation](#default-aggregation)
* [Resource Attributes as Metric Attributes](#resource-attributes-as-metric-attributes)
* [Resource Attributes as Metric Labels](#resource-attributes-as-metric-labels)
* [Translation Strategy](#translation-strategy)
* [Scope Info](#scope-info)
* [Target Info](#target-info)
Expand Down Expand Up @@ -127,15 +127,14 @@ the [MetricReader](../sdk.md#metricreader) default `aggregation` as a function
of instrument kind. This option MAY be named `default_aggregation`, and MUST use
the [default aggregation](../sdk.md#default-aggregation) by default.

### Resource Attributes as Metric Attributes
### Resource Attributes as Metric Labels

**Status**: [Development](../../document-status.md)

A Prometheus Exporter MAY offer configuration to add resource attributes as metric attributes.
By default, it MUST NOT add any resource attributes as metric attributes.
The configuration SHOULD allow the user to select which resource attributes to copy (e.g.
include / exclude or regular expression based). Copied Resource attributes MUST NOT be
excluded from the `target` info metric. The option MAY be named `resource_constant_labels`.
A Prometheus Exporter MAY offer configuration to add resource attributes as metric labels.
By default, it MUST NOT add any resource attributes as metric labels.
The configuration SHOULD allow the user to select resource attributes to include or exclude. Copied Resource attributes MUST NOT be
Comment thread
jack-berg marked this conversation as resolved.
excluded from the `target_info` metric. The option SHOULD be named `resource_constant_labels`.
Comment thread
cijothomas marked this conversation as resolved.

### Translation Strategy

Expand Down
Loading