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:
Philip Gough
2021-08-16 10:26:30 +01:00
parent d666e4baa0
commit 710f6aa24d
2 changed files with 4 additions and 4 deletions

View File

@@ -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 },