Disk Schema
Disk data has runtime and static shapes. Runtime data describes current capacity and IO. Static data describes stable metadata.
Runtime: metrics.disk
{
"physical": [],
"logical": [],
"filesystems": [],
"base_io": [],
"smart": {
"status": "ok",
"updated_at": "2026-05-04T00:00:00Z",
"ttl_seconds": 300,
"devices": []
}
}
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, latency, or 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:
idnamewhen_failed
Common status values:
okpartialunsupportednot_foundno_permissiontimeouterrorno_cachestaleno_toolstandby
status is the collection state. health is the disk health result. A device can have status=ok and health=failed when collection succeeds but the disk health check fails.
no_cache, no_tool, and unsupported do not indicate disk failure. stale means the cache has expired, but the last devices[] data is retained.
devices[].ref points to physical[].ref or logical[].ref only when it can be matched safely.
Static: disk
{
"physical": [],
"logical": [],
"filesystems": [],
"base_io": []
}
physical[]
name- Optional:
device_path - Optional:
ref
logical[]
kindname- Optional:
device_path - Optional:
ref - Optional:
total - Optional:
mountpoint - Optional:
fs_type - Optional:
devices[]
filesystems[]
pathtotalfs_typeinodes_total- Optional:
device - Optional:
mountpoint
base_io[]
kindname- Optional:
device_path - Optional:
ref - Optional:
role
Platform Behavior
- Linux collects filesystems, block devices, RAID, LVM, and ZFS.
- Non-Linux platforms still populate
filesystems[]fromgopsutilpartition data. - Non-Linux RAID always returns
supported=false. - Arrays return
[], notnull.