From f6965e1812c20c797d76d056c08a605d109bf37a Mon Sep 17 00:00:00 2001 From: Kasinath Kottukkal Date: Fri, 16 Feb 2018 16:47:50 +0800 Subject: [PATCH] Add overlay to defIgnoredFSTypes (#824) * Add overlay to defIgnoredFSTypes To avoid statfs() errors if node_exporter is running as non privileged user. * Updated defIngoredFSTypes values in sorted order --- 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 a501b2b3..c82933bf 100644 --- a/collector/filesystem_linux.go +++ b/collector/filesystem_linux.go @@ -26,7 +26,7 @@ import ( const ( defIgnoredMountPoints = "^/(dev|proc|sys|var/lib/docker)($|/)" - defIgnoredFSTypes = "^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$" + 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 )