Skip to content

Commit cb6fdae

Browse files
committed
Node Exporter ignore virtual network device 'enP.*'.
1 parent 0ae85af commit cb6fdae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

assets/node-exporter/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ spec:
3636
- --path.udev.data=/host/root/run/udev/data
3737
- --no-collector.wifi
3838
- --collector.filesystem.mount-points-exclude=^/(dev|proc|sys|run/k3s/containerd/.+|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
39-
- --collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15})$
39+
- --collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15}|enP.*)$
4040
- --collector.cpu.info
4141
- --collector.textfile.directory=/var/node_exporter/textfile
4242
- --no-collector.cpufreq

jsonnet/main.jsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ local inCluster =
181181
rateInterval: '1m', // adjust the rate interval value to be 4 x the node_exporter's scrape interval (15s).
182182
},
183183
},
184+
ignoredNetworkDevices:: '^(veth.*|[a-f0-9]{15}|enP.*)$',
184185
},
185186
openshiftStateMetrics: {
186187
namespace: $.values.common.namespace,

0 commit comments

Comments
 (0)