diff options
author | Ben Kochie <superq@gmail.com> | 2018-10-12 11:24:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-12 11:24:32 +0200 |
commit | 0880d460d76f58f7d4be264a202a9bacfbf76c6e (patch) | |
tree | f39b53009bd35b1e7a574bd0b1027f04ab281924 | |
parent | 9cf508e6735eed3b01073a67d4eba9a527c2c56c (diff) | |
download | prometheus_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.go | 2 |
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 | ||
29 | const ( | 29 | const ( |
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 | ) |