space: filesystems, WAL size, databases and tablespaces
Check data/WAL/tablespace filesystem usage, WAL retention settings, database sizes, and tablespace capacities.
Inspects host filesystems for data_directory, sys_wal, and external tablespaces (local Unix socket only), plus WAL directory volume/limits, database sizes, and tablespaces. Read-only: never removes WAL segments or inspects table contents.
Usage
Key Options
| Option | Effect |
|---|---|
--json | Emit JSON probes (space.disk, space.wal, inst.databases, space.tablespaces) |
Verdict & Reading Output
FAIL(exit=2):space.disk_fullwhen free space on adata_directoryorwalfilesystem drops below one WAL segment (wal_segment_size).OK(exit=0): All probes collected cleanly with no redacted sizes and at least one WAL segment free ondata_directoryandwalfilesystems.UNKNOWN(exit=3): Remote connection (space.disk: not_applicable), missingsys_walortablespacestatfspermission (partial: skipped), deniedsys_ls_waldir()(kbdiag_ro), or missing segment size. Surviving mounts remain visible under[DISK]even on partial skips.
Example (KES V9 Primary, COLUMNS=80)
Related Commands
kbdiag wal— inspect current LSN position, replication slots, andarchive_readybacklogkbdiag slots— check inactive replication slots retaining WALkbdiag object— find the largest tables and indexes inside a database