Closed
Description
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 have k8snode
detector). Similarly we can add k8s.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.