banshee is under active development: collectors will keep changing, and a version you publish will likely need adjustments. For stable use, wait for version 1.0.0.

Linux

banshee/linux-collection/linux/ssh/

diskio

Disk activity of a Linux by SSH: IOPS, throughput, wait and busy time per disk, from /proc/diskstats.

  • linux
  • ssh
  • disk
  • iops
  • latency
  • alpine
  • debian
  • fedora

by banshee1 installation2 versions

Disk activity of a Linux, by SSH

Returns, for each disk, the reads and writes per second, the read and write throughput, the mean wait of a read and of a write, and the share of time the disk was busy.

How it works

The collector runs ls /sys/block (the whole disks) and cat /proc/diskstats (the counters of each disk and partition since boot).

  • Only the disks of /sys/block are measured: it never lists partitions, whatever their name (sda1, nvme0n1p1, mmcblk0p1).
  • Every value comes from counters over the interval between two runs: the first run is skipped, and a disk whose counters went backwards is left out of that run.
  • The mean wait is the time spent on reads (writes) divided by their number; a disk without reads (writes) in the interval has no wait value.
  • Portable: both are written by the kernel the same way on Alpine, Debian and Fedora; a sector in /proc/diskstats is always 512 bytes. Nothing is written on the target.

Prerequisites

  • an SSH account for monitoring, without write rights;
  • the fingerprint of the server's host key, set in protocol:ssh:fingerprint (not needed when the Security settings trust the first SSH fingerprint presented).

Outputs

OutputUnitPerMeaning
read-iops, write-iopsop/sdiskreads and writes completed
read-rate, write-rateMiB/sdiskthroughput
read-wait, write-waitmsdiskmean wait of an operation, queue included
busy%diskshare of time with at least one operation in progress

By default, loop*, ram*, zram*, sr*, fd* and nbd* are left out; the selection is changed on the probe.

Watches

WatchKindDefaultsChecked
read-latency Slow readsabove, on read-waitwarning 50, critical 200, for 5 minyes
write-latency Slow writesabove, on write-waitwarning 50, critical 200, for 5 minyes
busy Disk saturatedabove, on busywarning 90, for 10 minno

Limits

  • busy only means something for a disk that serves one operation at a time: an SSD or NVMe at 100 % may still serve many more. That is why it is not checked.
  • LVM and RAID volumes (dm-*, md*) are measured beside the disks under them: their activity is counted twice, once per layer.