diff --git a/jsonnet/kube-prometheus/components/node-exporter.libsonnet b/jsonnet/kube-prometheus/components/node-exporter.libsonnet index 30c8173b4214589913cc08cc8df45ffee352361f..df0a2f207b3772962589197b9b62278337f696c0 100644 --- a/jsonnet/kube-prometheus/components/node-exporter.libsonnet +++ b/jsonnet/kube-prometheus/components/node-exporter.libsonnet @@ -175,8 +175,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 4fe4d68e08155240b925f4ae97a518db734ea5fc..10b6b2c215a4429641dead5c56265a915af6f0e7 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: