aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Wienke <languitar@semipol.de>2018-07-23 15:43:42 +0200
committerJohannes 'fish' Ziemke <github@freigeist.org>2018-07-23 15:43:42 +0200
commit5c780d132c963acadf82846840864b700b095136 (patch)
tree1961201227a013e83f883732743928a5131a182f
parentca2fa4684b53d3021ce6f8c98886a1c93767000d (diff)
downloadprometheus_node_collector-5c780d132c963acadf82846840864b700b095136.tar.bz2
prometheus_node_collector-5c780d132c963acadf82846840864b700b095136.tar.xz
prometheus_node_collector-5c780d132c963acadf82846840864b700b095136.zip
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 <languitar@semipol.de>
-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 eedce00..04c21a6 100644
--- a/collector/filesystem_linux.go
+++ b/collector/filesystem_linux.go
@@ -27,7 +27,7 @@ import (
27) 27)
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|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$" 31 defIgnoredFSTypes = "^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$"
32 readOnly = 0x1 // ST_RDONLY 32 readOnly = 0x1 // ST_RDONLY
33 mountTimeout = 30 * time.Second 33 mountTimeout = 30 * time.Second