VMware datastore capacity
The VmwareCollector emits a multi-instance resource for each datastore a HostSystem mounts, alongside the performance counters it already collects. The values come from Datastore.summary, a property on the managed object, rather than from vCenter’s PerformanceManager — so capacity numbers reflect what vCenter reports at collection time, not a 5-minute averaged sample.
Datastore data is collected automatically for every host imported by the VMware requisition handler, scoped to the datastores that host mounts. A datastore mounted by multiple hosts is collected once per host, under each host’s resource tree.
When this group runs
The shipped default-HostSystem6 and default-HostSystem7 collections include a <vmware-group> with resourceType="vmwareDatastoreCapacity". When VmwareCollector iterates a host’s configured groups, that resource type triggers the datastore dispatch instead of a PerformanceManager query. Removing the group from a custom collection disables datastore collection for hosts using that collection.
The group is only valid inside HostSystem collections. If it appears in a VirtualMachine collection (or any non-HostSystem managed entity), the collector logs a warning and skips it.
Resource layout
Per host:
share/rrd/snmp/{nodeId}/vmwareDatastoreCapacity/{datastoreMoid}/
DsCapacity.rrd DsFreeSpace.rrd DsUsed.rrd DsUsedPct.rrd
DsUncommitted.rrd DsOvercommitted.rrd DsAccessible.rrd DsMultiHost.rrd
strings.properties (DsType, DsUrl, vmwareDatastoreCapacityName)
The resource type is registered globally via ${OPENNMS_HOME}/etc/resource-types.d/vmware-datastore-resource.xml.
Graphs are defined in ${OPENNMS_HOME}/etc/snmp-graph.properties.d/vmware-datastore-graph.properties.
Numeric attributes (gauges)
| Attribute | Description |
|---|---|
capacity |
Total size of the datastore in bytes, as reported by vCenter. |
freeSpace |
Free space in bytes. |
used |
Computed as |
usedPct |
Integer percent of capacity in use (0-100).
Returns |
uncommitted |
Bytes promised by thin-provisioned virtual disks but not yet written.
Coerced to |
overcommittedBytes |
Computed as |
accessible |
|
multipleHostAccess |
|