-
Notifications
You must be signed in to change notification settings - Fork 7
Ensure Prometheus target is added as a label to incoming samples automatically #7
Comments
No implying this must be supported, just noting: The other default label in Prometheus is Also see https://prometheus.io/docs/concepts/jobs_instances/ |
They labels should be promoted to the "resource attributes" as they identify the resource against which the metrics are associated/reported. I submitted issue open-telemetry/opentelemetry-collector#2499 |
…2897) In Prometheus, `job` and `instance` are the two auto generated labels, however they are both dropped by prometheus receiver. Although these information is still available in `service.name` and `host`:`port`, it breaks the data contract for most Prometheus users (who use `job` and `instance` to consume metrics in their own system). This PR adds `job` and `instance` as well-known labels in prometheus receiver to fix the issue. **Link to tracking Issue:** #575 #2499 #2363 open-telemetry/prometheus-interoperability-spec#7
@alolita, in the collector, functionality for this was implemented in open-telemetry/opentelemetry-collector#2897, could we please close this issue? |
Duplicate of #37. |
After open-telemetry/opentelemetry-collector#2897 is merged, #37 is still failing. Closing this issue because it's a duplicate, let's have the conversation on #37. |
Ensure Prometheus target is added as a label to incoming samples automatically.
Component: https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/prometheusreceiver
A design proposal is needed for this task.
The text was updated successfully, but these errors were encountered: