Skip to content

collectors DiskSpaceCollector

Rob Smith edited this page Oct 29, 2012 · 18 revisions

DiskSpaceCollector

Uses /proc/mounts and os.statvfs() to get disk space usage

Dependencies

  • /proc/mounts

Examples

# no exclude filters at all
exclude_filters =,

# exclude everything that begins /boot or /mnt
exclude_filters = ^/boot, ^/mnt

# exclude everything that includes the letter 'm'
exclude_filters = m,

Options

  • Generic Options
  • enabled: Enable collecting these metrics
  • exclude_filters: A list of regex patterns. Any filesystem matching any of these patterns will be excluded from disk space metrics collection
  • byte_unit: Default numeric output(s)
  • filesystems: filesystems to examine

Example Output

servers.hostname.diskspace.root.gigabyte_avail (1020.962, 2)
servers.hostname.diskspace.root.gigabyte_free (1090.826, 2)
servers.hostname.diskspace.root.gigabyte_used (284.525, 2)
servers.hostname.diskspace.root.inodes_avail 91229495
servers.hostname.diskspace.root.inodes_free 91229495
servers.hostname.diskspace.root.inodes_used 348873
Clone this wiki locally