From 64e637cbcceaa8fa12ae7c2a1f86b726b7cd7223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 24 Dec 2016 12:31:21 +0100 Subject: [PATCH] Ignore autofs filesystems on linux node_exporter currently triggers autofs to mount the underlying filesystem on every scrape. This is undesirable. Better ignore autofs. The underlying filesystem that autofs mounts will be monitored though, when the (real) filesystem is mounted. --- 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 ceb99fa7..416ba1dd 100644 --- a/collector/filesystem_linux.go +++ b/collector/filesystem_linux.go @@ -26,7 +26,7 @@ import ( const ( defIgnoredMountPoints = "^/(sys|proc|dev)($|/)" - defIgnoredFSTypes = "^(sys|proc)fs$" + defIgnoredFSTypes = "^(sys|proc|auto)fs$" ST_RDONLY = 0x1 )