jingo5star

updated

14 years ago

J

jingo5star

23 Posts

0

150839

November 19th, 2012 17:00

Retrieving Memory Utilization (WCF Function)

Was hoping one of the officiando's on this board could enlighten me on what I could possibly doing wrong.

I have created a WCF dashboard that shows a VMs CPU and Memory Avg and Max Utilization for the past 30 days. The vFogkight data in the dashboard, from my reviewing of the VM through vCenter, shows correctly and is provided below

cpumem.PNG

When I create a function that pulls the exact same metrics I for some reason am not getting the same information.

1. Average memory for the period appears to be correct

memAverage = virtualMachine.get("memory/hostMemory/utilization/period/average")

memavg.PNG

2. Max memory is not matching what is shown in the data chart above

memMax = virtualMachine.get("memory/hostMemory/utilization/period/max")

memmax.PNG

3. Average CPU is not matching what is shown in the data chart above

cpuAverage = virtualMachine.get("cpus/hostCPUs/utilization/period/average")

cpuavg.PNG

4. Max CPU for the period appears to be correct

cpuMax = virtualMachine.get("cpus/hostCPUs/utilization/period/max")

cpumax.PNG

Any assistance with helping me understand where I went wrong is greatly appreciated.

Thanks,

Joshua