Plugin:Disk

From collectd Wiki

Jump to: navigation, search
Disk plugin
Type: read
Callbacks: config, init, read
Status: supported
First version: 1.5
Copyright: 2005–2008 Florian octo Forster
2009 Manuel Sanmartin
License: GPLv2
Manpage: collectd.conf(5)
List of Plugins

The Disk plugin collects performance statistics of hard-disks and, where supported, partitions. While the “octets” and “operations” are quite straight forward, the other two datasets need a little explanation:

  • “merged” are the number of operations, that could be merged into other, already queued operations, i. e. one physical disk access served two or more logical operations. Of course, the higher that number, the better.
  • “time” is the average time an I/O-operation took to complete. Since this is a little messy to calculate take the actual values with a grain of salt.

[edit] Synopsis

<Plugin "disk">
  Disk "sda"
  Disk "/^hd/"
  IgnoreSelected false
</Plugin>

[edit] Example graphs

Image:Plugin-disk-merged.png Image:Plugin-disk-octets.png Image:Plugin-disk-ops.png Image:Plugin-disk-time.png

[edit] Dependencies

  • Linux
    • Either /proc/diskstats (Linux 2.6) or /proc/partitions (Linux 2.4)
  • Darwin / Mac OS X
  • Solaris
    • libkstat(3KSTAT)
  • AIX
    • libperfstat(3)