From 2aa8d0eb0c2c6526c82adab9258efb5b259c7ee7 Mon Sep 17 00:00:00 2001 From: Netmonk Date: Wed, 3 Jan 2018 11:40:32 +0100 Subject: [PATCH] [FIX] Exclude Linux proc from filesystem type regexp (#774) * [FIX] Issue 63, error on excluding proc filesystem on linux, improving regexp * [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 d9a44320..b00db6a5 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|autofs|procfs|proc)$" readOnly = 0x1 // ST_RDONLY )