Skip to content

Commit

Permalink
Merge pull request #1927 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1905-to-release-4.13

[release-4.13] OCPBUGS-11016: Node Exporter ignores network interface under name "cali[a-f0-9]*"
  • Loading branch information
openshift-merge-robot committed Aug 1, 2023
2 parents 18b1d25 + 9a2b8cc commit 547c850
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions assets/node-exporter/daemonset.yaml
Expand Up @@ -36,8 +36,8 @@ spec:
- --path.udev.data=/host/root/run/udev/data
- --no-collector.wifi
- --collector.filesystem.mount-points-exclude=^/(dev|proc|sys|run/k3s/containerd/.+|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
- --collector.netclass.ignored-devices=^(veth.*|[a-f0-9]{15}|enP.*|ovn-k8s-mp[0-9]*|br-ex|br-int|br-ext|br[0-9]*|tun[0-9]*)$
- --collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15}|enP.*|ovn-k8s-mp[0-9]*|br-ex|br-int|br-ext|br[0-9]*|tun[0-9]*)$
- --collector.netclass.ignored-devices=^(veth.*|[a-f0-9]{15}|enP.*|ovn-k8s-mp[0-9]*|br-ex|br-int|br-ext|br[0-9]*|tun[0-9]*|cali[a-f0-9]*)$
- --collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15}|enP.*|ovn-k8s-mp[0-9]*|br-ex|br-int|br-ext|br[0-9]*|tun[0-9]*|cali[a-f0-9]*)$
- --collector.cpu.info
- --collector.textfile.directory=/var/node_exporter/textfile
- --no-collector.btrfs
Expand Down
8 changes: 5 additions & 3 deletions jsonnet/main.jsonnet
Expand Up @@ -190,17 +190,19 @@ local inCluster =
},
// NOTE:
// "ignoredNetworkDevices" sets the 2 arguments "--collector.netclass.ignored-devices" and "--collector.netdev.device-exclude".
// 5 kinds of virtual NICs will be ignored:
// 6 kinds of virtual NICs will be ignored:
// 1. veth network interface associated with containers.
// 2. OVN renames veth.* to <rand-hex>@if<X> where X is /sys/class/net/<if>/ifindex
// thus [a-z0-9]{15}}
// thus [a-z0-9]{15}
// 3. enP.* virtual NICs on Azure cluster.
// 4. OVN virtual interfaces ovn-k8s-mp[0-9]*
// 5. virtual tunnels and bridges: tun[0-9]*|br[0-9]*|br-ex|br-int|br-ext
// 6. Calico Virtual NICs cali[a-f0-9]*
// Refer to:
// https://issues.redhat.com/browse/OCPBUGS-1321
// https://issues.redhat.com/browse/OCPBUGS-2729
ignoredNetworkDevices:: '^(veth.*|[a-f0-9]{15}|enP.*|ovn-k8s-mp[0-9]*|br-ex|br-int|br-ext|br[0-9]*|tun[0-9]*)$',
// https://issues.redhat.com/browse/OCPBUGS-7282
ignoredNetworkDevices:: '^(veth.*|[a-f0-9]{15}|enP.*|ovn-k8s-mp[0-9]*|br-ex|br-int|br-ext|br[0-9]*|tun[0-9]*|cali[a-f0-9]*)$',
},
openshiftStateMetrics: {
namespace: $.values.common.namespace,
Expand Down

0 comments on commit 547c850

Please sign in to comment.