pkg/service が内部メトリクスからサービス識別ラベルを削除
影響対象Collector の内部メトリクス
これまでは、すべての内部メトリクス系列に service_name、service_instance_id、service_version のラベルが付いていました。これらのラベルは target_info のみに表示されるようになったため、個々のメトリクスをこれらのラベルで絞り込んだりグループ化したりするクエリでは、target_info との結合が必要です。
原文を表示
- `pkg/service`: Remove `service_name`, `service_instance_id`, and `service_version` as constant labels on every internal metric datapoint. These attributes are already present in `target_info` and were being duplicated on each series for OpenCensus backwards compatibility. (#14811) Previously, the collector stamped every internal metric series (e.g. `otelcol_process_runtime_heap_alloc_bytes`) with `service_name`, `service_instance_id`, and `service_version` labels to match the old OpenCensus behavior. These attributes are now only present in the `target_info` metric, which is the correct Prometheus/OTel convention. Users who filter or group by these labels on individual metrics will need to update their queries to use `target_info` joins instead.github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.149.0