jsonnet: The node exporter should not export data about veth interfaces.
In case of the OVN, the regex was incorrect and was exporting veth metrics.
This commit is contained in:
@@ -177,8 +177,8 @@ function(params) {
|
||||
// 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+)$',
|
||||
'--collector.netclass.ignored-devices=^(veth.*|[a-f0-9]{15})$',
|
||||
'--collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15})$',
|
||||
],
|
||||
volumeMounts: [
|
||||
{ name: 'sys', mountPath: '/host/sys', mountPropagation: 'HostToContainer', readOnly: true },
|
||||
|
||||
@@ -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.*|[a-z0-9]+@if\d+)$
|
||||
- --collector.netdev.device-exclude=^(veth.*|[a-z0-9]+@if\d+)$
|
||||
- --collector.netclass.ignored-devices=^(veth.*|[a-f0-9]{15})$
|
||||
- --collector.netdev.device-exclude=^(veth.*|[a-f0-9]{15})$
|
||||
image: quay.io/prometheus/node-exporter:v1.1.2
|
||||
name: node-exporter
|
||||
resources:
|
||||
|
||||
Reference in New Issue
Block a user