Skip to content

Commit 09fdac7

Browse files
author
Prashant Balachandran
committed
changing node exporter ignore list
1 parent a1a9707 commit 09fdac7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jsonnet/kube-prometheus/components/node-exporter.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ function(params) {
178178
// NOTE: ignore veth network interface associated with containers.
179179
// OVN renames veth.* to <rand-hex>@if<X> where X is /sys/class/net/<if>/ifindex
180180
// thus [a-z0-9] regex below
181-
'--collector.netclass.ignored-devices=^(veth.*|[a-z0-9]+@if\\d+)$',
182-
'--collector.netdev.device-exclude=^(veth.*|[a-z0-9]+@if\\d+)$',
181+
'--collector.netclass.ignored-devices=^(veth.*|[a-f0-9]{15})$',
182+
'--collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15})$',
183183
],
184184
volumeMounts: [
185185
{ name: 'sys', mountPath: '/host/sys', mountPropagation: 'HostToContainer', readOnly: true },

manifests/node-exporter-daemonset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ spec:
3030
- --no-collector.wifi
3131
- --no-collector.hwmon
3232
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
33-
- --collector.netclass.ignored-devices=^(veth.*|[a-z0-9]+@if\d+)$
34-
- --collector.netdev.device-exclude=^(veth.*|[a-z0-9]+@if\d+)$
33+
- --collector.netclass.ignored-devices=^(veth.*|[a-f0-9]{15})$
34+
- --collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15})$
3535
image: quay.io/prometheus/node-exporter:v1.2.0
3636
name: node-exporter
3737
resources:

0 commit comments

Comments
 (0)