Open nrobert13 opened 1 year ago
I think we also just discovered this for the AWS VPC CNI and it is exploding the cardinality of the network metrics and it does appear the duplicated interface labels are only for pods with Host Networking enabled. But its unclear to me which interface is correct if not the first interface which at least for Amazon Linux 2 is eth0
I'm running kubernetes
v1.26.6
with calico in vxlan mode. Looking at the cAdvisor metrics, I noticed that thecontainer_network_*
metrics for pods running with pod networking ( no host networking ) additional label combinations are being reported, for instance:filtering the metrics by one
cali*
interface, ( every pod with pod networking has a veth interface called cali* ), I get the following metrics:PromQL:
reports:
notice that the metric is for interface
cali248950e0d8c
and contains label for cgroups for different podscalico-node-fqkwq
,csi-cinder-nodeplugin-fv9dm
,kube-proxy-mvxt2
,conntrack-exporter-7b2kg
andnode-exporter-nnbtg
. All these pods run with hostneworking, and are being reported for eachcali*
interface.I'm confused about this behavior, and not sure if my understanding is wrong or this is actually a bug.
I would have expected one counter for each pod with podnetworking without these additional labels for the mentioned pods. Thanks in advance for any input.