aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kochie <superq@gmail.com>2018-10-12 11:24:32 +0200
committerGitHub <noreply@github.com>2018-10-12 11:24:32 +0200
commit0880d460d76f58f7d4be264a202a9bacfbf76c6e (patch)
treef39b53009bd35b1e7a574bd0b1027f04ab281924
parent9cf508e6735eed3b01073a67d4eba9a527c2c56c (diff)
downloadprometheus_node_collector-0880d460d76f58f7d4be264a202a9bacfbf76c6e.tar.bz2
prometheus_node_collector-0880d460d76f58f7d4be264a202a9bacfbf76c6e.tar.xz
prometheus_node_collector-0880d460d76f58f7d4be264a202a9bacfbf76c6e.zip
Ignore additional virtual filesystems (#1104)
Add more virtual filesystems to the default ignore list * bpf * cgroup2 * selinuxfs * squashfs Signed-off-by: Ben Kochie <superq@gmail.com>
-rw-r--r--collector/filesystem_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/filesystem_linux.go b/collector/filesystem_linux.go
index 74701d4..65614a9 100644
--- a/collector/filesystem_linux.go
+++ b/collector/filesystem_linux.go
@@ -28,7 +28,7 @@ import (
28 28
29const ( 29const (
30 defIgnoredMountPoints = "^/(dev|proc|sys|var/lib/docker/.+)($|/)" 30 defIgnoredMountPoints = "^/(dev|proc|sys|var/lib/docker/.+)($|/)"
31 defIgnoredFSTypes = "^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$" 31 defIgnoredFSTypes = "^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$"
32 readOnly = 0x1 // ST_RDONLY 32 readOnly = 0x1 // ST_RDONLY
33 mountTimeout = 30 * time.Second 33 mountTimeout = 30 * time.Second
34) 34)