Collectd
Disk Plugin
To collect disk use stats from zvols use the following.
Requires that collectd is built with libudev, ubuntu does this.
NOTE: You cannot monitor other disks with this configuration.
/etc/collectd/collectd.conf.d/disk.conf:
LoadPlugin disk
<Plugin disk>
Disk "/dev\/disk\/by-path/"
Disk "/dev\/disk\/by-id/"
Disk "/dev\/disk\/by-uuid/"
Disk "/dev\/disk\/by-partuuid/"
Disk "/dev\/disk\/by-partlabel/"
Disk "/dev\/local/"
Disk "/dev\/mapper/"
IgnoreSelected true
UdevNameAttr "DEVLINKS"
</Plugin>
When graphite receives this data it will create directories named like:
disk-dev_zvol_poolid_zvol-name
which will contain the various whisper database files (.wsp).