Skip to content

Commit

Permalink
Update proposals/2024-07-15-otel-resource-attribute-promotion.md
Browse files Browse the repository at this point in the history
Co-authored-by: Goutham Veeramachaneni <[email protected]>
Signed-off-by: Arve Knudsen <[email protected]>
  • Loading branch information
aknuds1 and gouthamve authored Jul 15, 2024
1 parent ead597b commit 9191fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proposals/2024-07-15-otel-resource-attribute-promotion.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

Currently, Prometheus encodes OpenTelemetry (OTel for short) [resource attributes](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/sdk.md) as labels of the `target_info` metric.
OTel resource attributes model metadata about the environment producing metrics received by the backend (e.g. Prometheus).
Typically, OTel users want to include some of these attributes (as `target_info` labels) in their Prometheus query results, to correlate them with entities of theirs (e.g. K8s pods).
Typically, OTel users want to include some of these attributes (as `target_info` labels) in their Prometheus query results, to correlate them with entities of theirs (e.g. K8s pods). This is similar to copying target labels from Service Discovery attributes. For example, users commonly copy `namespace`, `deployment`, etc. labels to make it easier to query the metrics. They should be able to copy over similar attributes when ingesting OTLP, i.e, `k8s.namespace.name`, `k8s.deployment.name`, etc.

Based on user demand, it would be preferable if Prometheus were to have better UX for including OTel resource attributes in query results.
The current solution is to join with `target_info in queries, to pick also the labels one is interested in (corresponding to OTel resource attributes).
Expand Down

0 comments on commit 9191fcb

Please sign in to comment.