Skip to content

Commit

Permalink
Exclude only subdirectories of /var/lib/docker (prometheus#1003)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
languitar authored and discordianfish committed Jul 23, 2018
1 parent ca2fa46 commit 5c780d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/filesystem_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c780d1

Please sign in to comment.