From 07a98ea5f7a2473887fc3a9f58c81a20ff3b8a43 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Tue, 7 Nov 2017 11:45:09 -0800 Subject: [PATCH] Always ignore autofs filesystems in disk input (#3440) --- plugins/inputs/system/ps.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/inputs/system/ps.go b/plugins/inputs/system/ps.go index 979a3b164..d41e6bddf 100644 --- a/plugins/inputs/system/ps.go +++ b/plugins/inputs/system/ps.go @@ -85,6 +85,11 @@ func (s *systemPS) DiskUsage( fstypeExcludeSet[filter] = true } + // Autofs mounts indicate a potential mount, the partition will also be + // listed with the actual filesystem when mounted. Ignore the autofs + // partition to avoid triggering a mount. + fstypeExcludeSet["autofs"] = true + var usage []*disk.UsageStat var partitions []*disk.PartitionStat