From 5c780d132c963acadf82846840864b700b095136 Mon Sep 17 00:00:00 2001 From: Johannes Wienke Date: Mon, 23 Jul 2018 15:43:42 +0200 Subject: [PATCH] Exclude only subdirectories of /var/lib/docker (#1003) It is quite common to put /var/lib/docker itself on a separate partition and that should be monitored as well. Signed-off-by: Johannes Wienke --- 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 eedce006..04c21a69 100644 --- a/collector/filesystem_linux.go +++ b/collector/filesystem_linux.go @@ -27,7 +27,7 @@ import ( ) const ( - defIgnoredMountPoints = "^/(dev|proc|sys|var/lib/docker)($|/)" + defIgnoredMountPoints = "^/(dev|proc|sys|var/lib/docker/.+)($|/)" defIgnoredFSTypes = "^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$" readOnly = 0x1 // ST_RDONLY mountTimeout = 30 * time.Second