Browse Source

Ignore mountpoints under /run (#2157)

* Exclude mountpoints under /run/credentials

Signed-off-by: ml <ml@visu.li>
superq/os_collector
ml 3 years ago committed by GitHub
parent
commit
094ee24ad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      collector/filesystem_linux.go

2
collector/filesystem_linux.go

@ -33,7 +33,7 @@ import (
)
const (
defMountPointsExcluded = "^/(dev|proc|sys|var/lib/docker/.+)($|/)"
defMountPointsExcluded = "^/(dev|proc|run/credentials/.+|sys|var/lib/docker/.+)($|/)"
defFSTypesExcluded = "^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$"
)

Loading…
Cancel
Save