[processor/k8s_attributes] Consider moving k8s.cluster.uid detection to the resource detection processor #38207
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
processor/k8sattributes
k8s Attributes processor
processor/resourcedetection
Resource detection processor
Uh oh!
There was an error while loading. Please reload this page.
Component(s)
No response
Is your feature request related to a problem? Please describe.
It can be valuable to set
k8s.cluster.uid
resource attribute to all telemetry in a particular cluster. However, k8s attributes processor requires having a pod association to set even the attribute that is taken from the configured k8s api without using any pod information. This mode of applying attributes is better suited in the resource detection processor, not k8s attributes processor.Describe the solution you'd like
The detector can be called
k8scluster
(we already havek8snode
detector). Similarly we can addk8s.cluster.name
in this detector as requested in #35116.Describe alternatives you've considered
It's possible to also update the k8s attributes processor to set
k8s.cluster.uid
on all telemetry, but that goes against its main purpose.The text was updated successfully, but these errors were encountered: