Skip to content

Commit

Permalink
Always ignore autofs filesystems in disk input (#3440)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored Nov 7, 2017
1 parent 2c2dc97 commit b81bea6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/inputs/system/ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b81bea6

Please sign in to comment.