disk_usage
Get per-filesystem disk usage on an instance and identify the top directory consumers under the fullest mount.
Instructions
Per-filesystem disk usage on one instance plus the top directory consumers under the fullest mount. Read-only (df bytes+inodes with pseudo-filesystems excluded; depth-2 du, sudo -n when available). Returns JSON: {filesystems: [{mount, size_bytes, used_pct, inodes_used_pct}], fullest_mount, top_consumers: [{path, size_bytes}]}. Errors: df_not_available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | Max top-consumer rows (1-100, default 20). | |
| instance_id | Yes | Instance ID or name. |