Skip to content

Commit

Permalink
Clarify OpenTelemetry resource attributes to Prometheus labels relati…
Browse files Browse the repository at this point in the history
…onship
  • Loading branch information
dragosvictor committed Jul 5, 2024
1 parent 8d01016 commit 6dd908a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions docs/deploy-monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,7 @@ OTEL_EXPORTER_PROMETHEUS_PORT
This endpoint must be accessible by the remote Prometheus scrape server. Note that the exporter is less resource
efficient than the OTLP exporter.

Prometheus currently exports the resource attributes in metric `target_info`. In practice, if you have more than one
cluster, it forces you to use PromQL joins to obtain the cluster ID label.

The Pulsar community has added the option to the OpenTelemetry Java SDK Prometheus Exporter to embed (copy) the cluster
ID label (`pulsar.cluster`) to each outgoing time series labels. Once this is finalized it will be added by default into
Pulsar.
All OpenTelemetry resource attributes are automatically copied to Prometheus labels on each time series.

For further configuration details, refer to the exporter
[documentation](https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md#prometheus-exporter).
Expand Down

0 comments on commit 6dd908a

Please sign in to comment.