[receiver/k8scluster] Prefix resource labels in entity events per OTel semconv#47493
Merged
dmitryax merged 1 commit intoApr 11, 2026
Merged
Conversation
50193eb to
3f53f69
Compare
semconv Kubernetes resource labels emitted as entity event attributes are now keyed as `k8s.<resource>.label.<key>` (e.g. `k8s.pod.label.app`) to align with OTel semantic conventions instead of being emitted verbatim. Affected resources: pod, node, and all resources going through GetGenericMetadata (deployment, daemonset, replicaset, statefulset, cronjob, job, hpa, replicationcontroller). Assisted-by: Claude Opus 4.6
3f53f69 to
2261a30
Compare
Member
Author
Right, it's still an experimental side channel. So I think it's fine to change it as a breaking change |
ChrsMark
approved these changes
Apr 9, 2026
dmitryax
added a commit
that referenced
this pull request
Apr 11, 2026
…efix from dimension property updates. (#47494) Add `dimension_client::strip_k8s_label_prefix` option to strip `k8s.<resource>.label.` prefix from dimension property updates. Once #47493 is merged, the k8s cluster receiver will emit Kubernetes resource labels in entity events with the `k8s.<resource>.label.` prefix per OTel semantic conventions (e.g. `k8s.pod.label.app`). When `strip_k8s_label_prefix: true` (the default), the SignalFx exporter strips this prefix when forwarding labels as dimension properties, preserving the existing SignalFx behavior (e.g. `app`).
AndrewCharlesHay
pushed a commit
to AndrewCharlesHay/opentelemetry-collector-contrib
that referenced
this pull request
Apr 23, 2026
…efix from dimension property updates. (open-telemetry#47494) Add `dimension_client::strip_k8s_label_prefix` option to strip `k8s.<resource>.label.` prefix from dimension property updates. Once open-telemetry#47493 is merged, the k8s cluster receiver will emit Kubernetes resource labels in entity events with the `k8s.<resource>.label.` prefix per OTel semantic conventions (e.g. `k8s.pod.label.app`). When `strip_k8s_label_prefix: true` (the default), the SignalFx exporter strips this prefix when forwarding labels as dimension properties, preserving the existing SignalFx behavior (e.g. `app`).
AndrewCharlesHay
pushed a commit
to AndrewCharlesHay/opentelemetry-collector-contrib
that referenced
this pull request
Apr 23, 2026
…l semconv (open-telemetry#47493) Resolves open-telemetry#47491 Kubernetes resource labels emitted as entity event attributes are now keyed as `k8s.<resource>.label.<key>` (e.g. `k8s.pod.label.app`) to align with OTel semantic conventions instead of being emitted verbatim. Affected resources: pod, node, and all resources going through GetGenericMetadata (deployment, daemonset, replicaset, statefulset, cronjob, job, hpa, replicationcontroller).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #47491
Kubernetes resource labels emitted as entity event attributes are now keyed as
k8s.<resource>.label.<key>(e.g.k8s.pod.label.app) to align with OTel semantic conventions instead of being emitted verbatim.Affected resources: pod, node, and all resources going through GetGenericMetadata (deployment, daemonset, replicaset, statefulset, cronjob, job, hpa, replicationcontroller).