【问题标题】:How can i gather the following metrics from VMware vCenter vSphere REST api?如何从 VMware vCenter vSphere REST api 收集以下指标?
【发布时间】:2020-06-03 23:10:08
【问题描述】:

我可以从 VMware vCenter vSphere REST api 收集以下指标吗?

  • 数据存储区读/写 IOPS
  • 网络带宽
  • 集群内存使用情况
  • 集群 CPU 用法

还是只能通过 Powershell CLI 访问这些数据?

谢谢

【问题讨论】:

    标签: api rest vmware vsphere vcenter


    【解决方案1】:

    不幸的是,通过 REST API 可用的指标只有有限的子集,而且几乎所有指标都仅适用于 vCenter Appliance 本身。

    可从 vSphere Web 服务 API 获取统计信息,尤其是 PerformanceManager 服务。

    您还可以通过多种编程语言(vSphere Management SDK、pyvmomi、rbvmomi、govmomi 等)以及 PowerShell/PowerCLI 访问它。

    【讨论】:

      猜你喜欢
      • 2021-11-28
      • 2016-11-20
      • 1970-01-01
      • 1970-01-01
      • 2020-09-17
      • 2017-01-13
      • 1970-01-01
      • 1970-01-01
      • 2021-08-07
      相关资源
      最近更新 更多