Files
6d5ba0ed00 [service] Remove duplicated service labels on every datapoint in prometheus output (#14811)
Partially resolves
https://github.com/open-telemetry/opentelemetry-collector/issues/14814
(removes duplicated attributes)

Internal collector metrics exposed with Prometheus by default have
duplicated service labels (`service_name`, `service_instance_id`,
`service_version`) on every datapoint while the same service attributes
emitted as `target_info` labels ending up as proper resource attributes
which the metrics scraped with Prometheus receiver (`service.name`,
`service.instance.id`, `service. version`)

The duplicated labels on every internal metric datapoint were added for
OpenCensus backwards compatibility in #9029 long time ago. Given that
now the `target_info` is correctly translated to Resource attributes and
the duplication leads to
https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/47011,
it should be good time to remove it.

---------

Co-authored-by: Yang Song <[email protected]>
2026-03-20 13:50:01 +00:00
..