VMware {code} Community
MoXx201110141
Contributor
Contributor

How to get used CPU resources from one VDC ?

I stated that used and overhead CPU resources are always equal to zero even if the VDC is heavily loaded :

Doing a GET https://10.170.232.44/api/v1.0/vdc/1879502284 returns the following ComputeCapacity field :

<ComputeCapacity>
        <Cpu>
            <Units>MHz</Units>
            <Allocated>6370</Allocated>
            <Limit>6370</Limit>
            <Used>0</Used>
            <Overhead>0</Overhead>

        </Cpu>
        <Memory>
            <Units>MB</Units>
            <Allocated>4669</Allocated>
            <Limit>4669</Limit>
            <Used>858</Used>
            <Overhead>347</Overhead>
        </Memory>

</ComputeCapacity>

Any ideas ?

Reply
0 Kudos
1 Reply
srmdocs
VMware Employee
VMware Employee

If this is an AllocationPool vDC, then CPU Used and Overhead values are always shown as 0, since all VMs in the vDC get what amounts to an equal distribution of  CPU resources (the 6370 in your example, which is what was allocated when the vDC was created).

Reply
0 Kudos