VMware vSphere

 View Only

Monitor vcenter via MOB-API

  • 1.  Monitor vcenter via MOB-API

    Posted May 24, 2023 09:35 AM

    Hi at all,

    we try to monitor vCenter also with an extern tool (our central monitoring tool is Icinga). For this we catch the data from the MOB-API-URL's for the VMs. But for this we have some questions, because also an extension for Icinga has also no solution, which fits for us:

    1. Is there (or will be in an future version from vCenter) a possibility, to catch the CPU Usage for each core (Path: „summary.quickStats.overallCpuUsage“).
      If we read the docs (Link 1 , Link 2  and Link 3 ), the return value of the API is something like an overall utilization or an aggregated value.
      Sometimes this is a little bit confusing, if you configure a 4 core CPU with e.g. 4 GhZ for the VM and you get a value like 11,2 GHz back. Much more confusing with configured CPUs with e.g. 12 cores. 
      So its often better to get this data for each core. e.g. like (h)top on Linux or the task manager on Windows and it's also better comparable with the OS values. 

    2. Furthermore, sometimes the "Turbo Boost" is configured in the BIOS of the VM. If so and the CPU overclocks itself, is there a possibility (or will be in a future version of vCenter) to catch such state via API.
      As well if the Turbo Boost is activated, what new base clock CPU has increased to? If so, the cpu usage (Path: „summary.quickStats.overallCpuUsage“) is better comparable with the configured or increased base clock.

    Or do you have better tips for us?

    Thank you!

    We are using vCenter vsphere 7.0.3.01100