Disk Schema
Runtime disk data and static disk data have different purposes and should be handled separately.
Runtime: metrics.disk
metrics.disk contains four arrays and SMART runtime state:
physical[]logical[]filesystems[]base_io[]smart
physical[]
Each item represents a block device.
Required:
nameread_byteswrite_bytesread_rate_bytes_per_secwrite_rate_bytes_per_seciopsread_iopswrite_iopsutil_ratioqueue_lengthwait_msservice_ms
Optional:
device_pathref
logical[]
Logical storage capacity view.
Required:
kindnameusedfreeused_ratio
Optional:
device_pathrefhealth
Common kind values:
diskraidraid_mdlvm_vglvm_thinpoollvm_lvzfs_pool
filesystems[]
Mount point view.
Required:
pathusedfreeused_ratioinodes_usedinodes_freeinodes_used_ratio
Optional:
devicemountpoint
base_io[]
IO view used for display and sorting.
Required:
kindnameread_rate_bytes_per_secwrite_rate_bytes_per_secread_iopswrite_iopsiops
Optional:
device_pathrefread_byteswrite_bytesutil_ratioqueue_lengthwait_msservice_ms
logical items may not have cumulative byte or underlying latency/utilization fields.
smart
SMART data comes from a root-side cache file. It is runtime state, not static disk inventory.
Required:
statusdevices[]
Optional:
updated_atttl_seconds
Required devices[] fields:
namesourcestatus
Optional devices[] fields:
refdevice_pathdevice_typeprotocolmodelserialwwnexit_statushealthtemp_cpower_on_hourslifetime_used_percentcritical_warningfailing_attrs[]
devices[] returns [] when empty. Unavailable SMART values are omitted.
critical_warning is the raw NVMe critical warning bitset. failing_attrs[] contains only ATA SMART attributes that are currently failing.
Common status values:
okpartialunsupportednot_foundno_permissiontimeouterrorno_cachestaleno_toolstandby
status is the collection state. health is the disk health result. no_cache, no_tool, and unsupported do not indicate disk failure.
Runtime: metrics.raid
Required:
supportedavailablearrays[]
arrays[] fields:
namestatusactiveworkingfailedhealthmembers- Optional:
sync_status - Optional:
sync_progress
members[] fields:
namestate