Skip to content

Commit d0464b2

Browse files
authored
Merge pull request #1376 from rajaSahil/Update-Configuration
2 parents 2b2af2b + cbef68e commit d0464b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jsonnet/kube-prometheus/components/node-exporter.libsonnet

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ local defaults = {
1212
limits: { cpu: '250m', memory: '180Mi' },
1313
},
1414
listenAddress: '127.0.0.1',
15+
filesystemMountPointsExclude: '^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)',
1516
port: 9100,
1617
commonLabels:: {
1718
'app.kubernetes.io/name': defaults.name,
@@ -180,7 +181,7 @@ function(params) {
180181
'--path.rootfs=/host/root',
181182
'--no-collector.wifi',
182183
'--no-collector.hwmon',
183-
'--collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)',
184+
'--collector.filesystem.mount-points-exclude=' + ne._config.filesystemMountPointsExclude,
184185
// NOTE: ignore veth network interface associated with containers.
185186
// OVN renames veth.* to <rand-hex>@if<X> where X is /sys/class/net/<if>/ifindex
186187
// thus [a-z0-9] regex below

0 commit comments

Comments
 (0)