Merge pull request #1376 from rajaSahil/Update-Configuration

This commit is contained in:
Paweł Krupa
2021-10-12 14:17:35 +02:00
committed by GitHub

View File

@@ -12,6 +12,7 @@ local defaults = {
limits: { cpu: '250m', memory: '180Mi' }, limits: { cpu: '250m', memory: '180Mi' },
}, },
listenAddress: '127.0.0.1', listenAddress: '127.0.0.1',
filesystemMountPointsExclude: '^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)',
port: 9100, port: 9100,
commonLabels:: { commonLabels:: {
'app.kubernetes.io/name': defaults.name, 'app.kubernetes.io/name': defaults.name,
@@ -180,7 +181,7 @@ function(params) {
'--path.rootfs=/host/root', '--path.rootfs=/host/root',
'--no-collector.wifi', '--no-collector.wifi',
'--no-collector.hwmon', '--no-collector.hwmon',
'--collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)', '--collector.filesystem.mount-points-exclude=' + ne._config.filesystemMountPointsExclude,
// 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