Browse Source

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.
pull/384/head
Bjørn Forsman 8 years ago
parent
commit
64e637cbcc
  1. 2
      collector/filesystem_linux.go

2
collector/filesystem_linux.go

@ -26,7 +26,7 @@ import (
const ( const (
defIgnoredMountPoints = "^/(sys|proc|dev)($|/)" defIgnoredMountPoints = "^/(sys|proc|dev)($|/)"
defIgnoredFSTypes = "^(sys|proc)fs$" defIgnoredFSTypes = "^(sys|proc|auto)fs$"
ST_RDONLY = 0x1 ST_RDONLY = 0x1
) )

Loading…
Cancel
Save