Hi!
Zabbix supports retrieving stats like vfs.dev.read[,sectors] or vfs.dev.read[sda,sectors] on Linux, the former returning the total of all block devices and the latter returning stats for a specific block device.
In general I'd like to have totals of a specific class of devices, and not all devices. Having stats on all devices results in double counting when using e.g. RAID an LVM because both add additional devices each counting the (same) I/O as well.
An alternative is a kind of wildcard construct like this: vfs.dev.read[sd?,sectors]. This should return totals for all vda, vdb, etc. block devices (so: not the partitions (vda1, vdb1 etc. nor the RAID and/or LVM devices on top).
Attached a patch to achieve precisely this.
Rolf
Zabbix supports retrieving stats like vfs.dev.read[,sectors] or vfs.dev.read[sda,sectors] on Linux, the former returning the total of all block devices and the latter returning stats for a specific block device.
In general I'd like to have totals of a specific class of devices, and not all devices. Having stats on all devices results in double counting when using e.g. RAID an LVM because both add additional devices each counting the (same) I/O as well.
An alternative is a kind of wildcard construct like this: vfs.dev.read[sd?,sectors]. This should return totals for all vda, vdb, etc. block devices (so: not the partitions (vda1, vdb1 etc. nor the RAID and/or LVM devices on top).
Attached a patch to achieve precisely this.
Rolf
Comment