datastore_capacity
Detect datastores at risk of running out of space by checking thin-provisioning overcommit and free capacity. Returns riskiest datastores first.
Instructions
[READ] Per-datastore capacity with thin-provisioning over-commit.
Returns the list envelope with a real total: capacity_gb, free_gb,
committed_gb, provisioned_gb, used_pct, overcommit_pct, riskiest first. Adds the
risk signal list_all_datastores lacks — overcommit_pct over 100% means more
space is promised to VMs than physically exists, so a thin datastore can fill up
while still showing free space. Point-in-time.
Whose figure: view (vCenter / ESXi host / unknown) and view_note.
Provisioned space is summed by the endpoint over the VMs it has registered on
the datastore, so a vCenter and a directly-reached ESXi host can report
different provisioned_gb for one datastore — each row's vm_count says how
many VMs the figure covers, and vms_not_connected names those reported as
orphaned/inaccessible/disconnected (None = could not be read).
Use this for the capacity view, then datastore_investigation_bundle to drill into a specific datastore's hosts, VMs and alarms. Reclaiming space (delete snapshots, storage vMotion) belongs to vmware-aiops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max datastore rows to return (None = all). | |
| target | No | vCenter/ESXi target from config (default if omitted). |