From 7c45cb8b10bff964d2e5c53db93ffb74d84a0350 Mon Sep 17 00:00:00 2001 From: ml Date: Wed, 29 Sep 2021 00:58:57 +0200 Subject: [PATCH 1/2] Ignore all mounts under /run Signed-off-by: ml --- collector/filesystem_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/filesystem_linux.go b/collector/filesystem_linux.go index af60d2e6a6..dcd98fe763 100644 --- a/collector/filesystem_linux.go +++ b/collector/filesystem_linux.go @@ -33,7 +33,7 @@ import ( ) const ( - defMountPointsExcluded = "^/(dev|proc|sys|var/lib/docker/.+)($|/)" + defMountPointsExcluded = "^/(dev|proc|run/.+|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)$" ) From 93921a6ec28acba5ae5c79e2b4159afc2967ec5f Mon Sep 17 00:00:00 2001 From: ml Date: Wed, 27 Oct 2021 13:26:46 +0200 Subject: [PATCH 2/2] Exclude mountpoints under /run/credentials Signed-off-by: ml --- collector/filesystem_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/filesystem_linux.go b/collector/filesystem_linux.go index dcd98fe763..a4a0d3dcd7 100644 --- a/collector/filesystem_linux.go +++ b/collector/filesystem_linux.go @@ -33,7 +33,7 @@ import ( ) const ( - defMountPointsExcluded = "^/(dev|proc|run/.+|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)$" )