Search code examples
apirestvmwarevspherevcenter

How can i gather the following metrics from VMware vCenter vSphere REST api?


Could I gather the following metrics from VMware vCenter vSphere REST api?

  • Datastore Read/Write IOPS
  • Network Bandwith
  • Cluster Memory Usage
  • Cluster CPU Usage

Or is this data only accessible through the Powershell CLI?

Thanks


Solution

  • Unfortunately, there's only a limited subset of metrics available via the REST API and almost all of them are only for the vCenter Appliance itself.

    The stats are available from the vSphere Web Services API, particularly the PerformanceManager service.

    You can also access that through numerous programing languages (vSphere Management SDK, pyvmomi, rbvmomi, govmomi, etc.), as well as PowerShell/PowerCLI.