diff --git a/jsonnet/kube-prometheus/components/node-exporter.libsonnet b/jsonnet/kube-prometheus/components/node-exporter.libsonnet index 0f07f8af7b19997a0e637a7c180f2509377f89df..3d4c65df1cff9e5e3d3c0505e34c266361860b05 100644 --- a/jsonnet/kube-prometheus/components/node-exporter.libsonnet +++ b/jsonnet/kube-prometheus/components/node-exporter.libsonnet @@ -174,8 +174,11 @@ function(params) { '--no-collector.wifi', '--no-collector.hwmon', '--collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)', - '--collector.netclass.ignored-devices=^(veth.*)$', - '--collector.netdev.device-exclude=^(veth.*)$', + // NOTE: ignore veth network interface associated with containers. + // OVN renames veth.* to <rand-hex>@if<X> where X is /sys/class/net/<if>/ifindex + // thus [a-z0-9] regex below + '--collector.netclass.ignored-devices=^(veth.*|[a-z0-9]+@if\\d+)$', + '--collector.netdev.device-exclude=^(veth.*|[a-z0-9]+@if\\d+)$', ], volumeMounts: [ { name: 'sys', mountPath: '/host/sys', mountPropagation: 'HostToContainer', readOnly: true }, diff --git a/manifests/node-exporter-daemonset.yaml b/manifests/node-exporter-daemonset.yaml index f63d10190fb6edc096d976f904ce8066b60c511f..e1111a326a9cab2d4728d3149450195c8a47a64d 100644 --- a/manifests/node-exporter-daemonset.yaml +++ b/manifests/node-exporter-daemonset.yaml @@ -30,8 +30,8 @@ spec: - --no-collector.wifi - --no-collector.hwmon - --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/) - - --collector.netclass.ignored-devices=^(veth.*)$ - - --collector.netdev.device-exclude=^(veth.*)$ + - --collector.netclass.ignored-devices=^(veth.*|[a-z0-9]+@if\d+)$ + - --collector.netdev.device-exclude=^(veth.*|[a-z0-9]+@if\d+)$ image: quay.io/prometheus/node-exporter:v1.1.2 name: node-exporter resources: