Skip to content
Snippets Groups Projects
Unverified Commit b9c73c7b authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

Merge pull request #1283 from prashbnair/node-veth

changing node exporter ignore list
parents 785789b7 09fdac73
No related branches found
No related tags found
No related merge requests found
...@@ -178,8 +178,8 @@ function(params) { ...@@ -178,8 +178,8 @@ function(params) {
// NOTE: ignore veth network interface associated with containers. // NOTE: ignore veth network interface associated with containers.
// OVN renames veth.* to <rand-hex>@if<X> where X is /sys/class/net/<if>/ifindex // OVN renames veth.* to <rand-hex>@if<X> where X is /sys/class/net/<if>/ifindex
// thus [a-z0-9] regex below // thus [a-z0-9] regex below
'--collector.netclass.ignored-devices=^(veth.*|[a-z0-9]+@if\\d+)$', '--collector.netclass.ignored-devices=^(veth.*|[a-f0-9]{15})$',
'--collector.netdev.device-exclude=^(veth.*|[a-z0-9]+@if\\d+)$', '--collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15})$',
], ],
volumeMounts: [ volumeMounts: [
{ name: 'sys', mountPath: '/host/sys', mountPropagation: 'HostToContainer', readOnly: true }, { name: 'sys', mountPath: '/host/sys', mountPropagation: 'HostToContainer', readOnly: true },
......
...@@ -30,8 +30,8 @@ spec: ...@@ -30,8 +30,8 @@ spec:
- --no-collector.wifi - --no-collector.wifi
- --no-collector.hwmon - --no-collector.hwmon
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/) - --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
- --collector.netclass.ignored-devices=^(veth.*|[a-z0-9]+@if\d+)$ - --collector.netclass.ignored-devices=^(veth.*|[a-f0-9]{15})$
- --collector.netdev.device-exclude=^(veth.*|[a-z0-9]+@if\d+)$ - --collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15})$
image: quay.io/prometheus/node-exporter:v1.2.0 image: quay.io/prometheus/node-exporter:v1.2.0
name: node-exporter name: node-exporter
resources: resources:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment