disk
Reference for the `disk` collector.
disk· collector · runnanook doc diskfor the same content in your terminal.
Filesystem usage per mountpoint.
Metrics
| Metric | Kind | Unit | Description |
|---|---|---|---|
disk.total | numeric | bytes | total disk space in bytes. Labels: mount. |
disk.used | numeric | bytes | used disk space in bytes. Labels: mount. |
disk.free | numeric | bytes | free disk space in bytes. Labels: mount. |
disk.usage | numeric | % | disk usage percentage. Labels: mount. |
Examples
Collect every minute
[[]]
= "disk"
= 60
Root mount near full
[[]]
= 'disk.usage{mount="/"} > 85%'
= 2
= "ops"
Data volume tight on free space
[[]]
= 'disk.free{mount="/data"} < 10GB'
= 1
= "ops"
= { = 1800, = "oncall" }
Filter to physical disks only
[[]]
= "disk"
= 60
= 'mount ~ "/mnt/*" || mount is "/"'