Metricbeat on Kubernetes stores incorrect container.id for pods with multiple containers #34533
Labels
kubernetes
Enable builds in the CI for kubernetes
Metricbeat
Metricbeat
needs_team
Indicates that the issue/PR needs a Team:* label
Issue reproduced with Metricbeat 8.4.x and 8.5.x.
Kuberenetes: 1.24
The
container metricset
fromkubernetes module
is setting wrong container IDs when pods have multiple containers.For example:
Both
container3
andcontainer4
of the previous example belongs to the same pod, and internally they have different container IDs. But metricbeat for some reason is using the samecontainer.id
for all containers of the pod.Example of POD with multiple containers that can be used to reproduce the issue:
This has been reported by some users with Istio enabled (which adds sidecar containers to pods).
Reproducing this is very easy, just configure Metricbeat on Kubernetes with our default manifest suggested here and explore metricbeat data in
discover
as showed in the screenshot.The text was updated successfully, but these errors were encountered: