VMware datastore (vmware_datastore)
Reads one datastore through the vSphere API with a read-only account, from an ESXi host or vCenter: whether it is accessible, how full it is, and how much of its space the thin-provisioned disks on it could still claim. Set up the account and the certificate as in VMware vSphere.
What it looks like

The sensor's page after a few polls, reading the VMFS datastore of a free ESXi 8.0 host. In the dark theme: the sensor's page. The form for adding it, with its parameters filled in: light, dark.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
datastore | required | The datastore's name as vSphere lists it. |
port, verify_tls, tls_fingerprint | 443, true, none | As for the host. |
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
accessible | Accessible | none | Down when not accessible (0) |
overall_status | Health | none | 0 green, 1 yellow (warning), 2 red (down), 3 gray (warning) |
used_pct | Space used | % | warning above 85, error above 95 |
used_bytes, free_bytes, total_bytes | Space | B | none |
provisioned_pct | Space provisioned | % | none |
api_ms | API response time | ms | none |
Used is the capacity minus the free space, as the host's own file system tools show it (esxcli storage filesystem list reports the same capacity and free space). Provisioned adds the space the thin disks on the datastore could still grow into (vSphere's "uncommitted"), as a share of the capacity. Above 100 it means the datastore is over-provisioned: the machines could together claim more than it holds. It has no default limit because many sites over-provision on purpose; set one if you do not.
A datastore that is not accessible (an unmounted NFS share, a lost LUN) is Down, and its size and use are unknown: vSphere can keep its last known size, which would read as a healthy datastore. A datastore in maintenance mode or entering it is a warning; vSphere reports the mode only through vCenter, so on an ESXi host it never shows. Suggested interval 300 seconds.
Datastore names are not unique across hosts of a vCenter whose hosts have local datastores of the same name; the sensor then fails and says so, and the datastore has to be renamed.