From 3fddc89ebc8ec9b97cd0e37c1074a13d1a83dd92 Mon Sep 17 00:00:00 2001 From: netmonk Date: Sat, 30 Dec 2017 08:23:46 +0100 Subject: [PATCH 1/2] [FIX] Issue 63, error on excluding proc filesystem on linux, improving regexp --- 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 d9a4432046..21ac459443 100644 --- a/collector/filesystem_linux.go +++ b/collector/filesystem_linux.go @@ -26,7 +26,7 @@ import ( const ( defIgnoredMountPoints = "^/(sys|proc|dev)($|/)" - defIgnoredFSTypes = "^(sys|proc|auto)fs$" + defIgnoredFSTypes = "^(sysfs|proc|autofs|procfs)$" readOnly = 0x1 // ST_RDONLY ) From 170f8c176848a8f5567e88f17117f7c95380b934 Mon Sep 17 00:00:00 2001 From: Netmonk Date: Wed, 3 Jan 2018 10:02:59 +0100 Subject: [PATCH 2/2] [FIX] Reordering filter 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 21ac459443..b00db6a5b1 100644 --- a/collector/filesystem_linux.go +++ b/collector/filesystem_linux.go @@ -26,7 +26,7 @@ import ( const ( defIgnoredMountPoints = "^/(sys|proc|dev)($|/)" - defIgnoredFSTypes = "^(sysfs|proc|autofs|procfs)$" + defIgnoredFSTypes = "^(sysfs|autofs|procfs|proc)$" readOnly = 0x1 // ST_RDONLY )