Include ImageID in Resource attributes detected by k8sattributes processor #32152
Labels
enhancement
New feature or request
priority:p2
Medium
processor/k8sattributes
k8s Attributes processor
Component(s)
k8sattributes
procesorIs your feature request related to a problem? Please describe.
We currently make use of the
k8sattributes
processor to augment Resource attributes from pods running in our k8s clusters.We are interested in obtaining the full sha256 digest version of the image associated with the container in a Kubernetes pod that is emitting telemetry, rather than relying on just the image name + tag.
Describe the solution you'd like
If we include
container.id
in thek8sattributes::metadata
array, we'd like to get not onlycontainer.image.name
,container.image.tag
, but alsocontainer.image.digest
added to the resource for that signal.Describe alternatives you've considered
Scrape information from kube-state-metrics (which does provide the image digest) and somehow cross-join that with the resource attributes determined by k8sattributes processor?
Additional context
Currently it seems like the k8sattributes processor extracts the image name and image tag from the
v1.Pod.Spec.Containers
data structure. The image digest is available inv1.Pod.Status.ContainerStatuses[].ImageID
.The text was updated successfully, but these errors were encountered: