VMware Cloud Community
Gabrie1
Commander
Commander

vSphere Power metric in vROPs

In vROPs I’m looking at power usage of our ESXi hosts. When opening the metrics of a host, I see Power | Total Energy (Wh). For a host this gives me values like 32.7458 Wh.

However, in vCenter via monitor -> performance ->advanced, when opening the “Power” “Usage” chart, I get values around 390 Watt. In vCenter from Monitor hardware health, I get the metric “System Board 1 POWER_USAGE” with values of around 360 Watts. And back to vROPs looking at the info from the hardware blade underneath the ESXi host in vROPs, I have a metric Power | Consumed Power (Watts) that shows values around 370 Watt.

The values of 360 Watt and more are fine with me, but I can’t figure out what the vROPs metric “Power | Total Energy (Wh)” is and why this is so low. Do I need to convert this value in someway to get near the 360Watt and more?

The docs only say: Total energy used. Formula: Total Energy (Wh) = Sum(Power|Energy (Joule))/3600https://docs.vmware.com/en/vRealize-Operations/8.6/com.vmware.vcom.metrics.doc/GUID-06199D37-FD3E-4A...

http://www.GabesVirtualWorld.com
7 Replies
maksym007
Expert
Expert

Are you sure that all parameters are the same in vROPS and in vCenter? 

 

0 Kudos
Gabrie1
Commander
Commander

@maksym007 not sure what you mean by that? Yes it is the same ESXi host in vCenter, in UCS and in vROPs. But since the exact moment in time can differ a few minutes of when the metric is populated, the 360+ values can differ a little. It is just the ESXi metric in vROPs is very low.

See below screenshot, left is vCenter performance monitor (low 320, high 440Watt ). 
Right is both vROPs with bottom the power usage of the blade on which the host runs (low 304, high 429Watts) and top is Power Total Energy in Wh of the ESXi host (low 26, high 33 Wh). This was a realtime graph.

Gabrie1_0-1675171600693.png

 

 

http://www.GabesVirtualWorld.com
0 Kudos
maksym007
Expert
Expert

Hmm, as for me vROPs usage is very straightforward.

Check that article maybe will help

https://vninjadfw.github.io/dcpowerusage/  

https://www.vmwareopsguide.com/dashboards/chapter-9-other-dashboards/3.9.1-green-operations/ 

0 Kudos
Gabrie1
Commander
Commander

@maksym007 is that your blog? Because the first link has reference to a view and dashboard for download, but those download links are dead.

http://www.GabesVirtualWorld.com
0 Kudos
Kinnison
Commander
Commander

Hi,


I have to agree with @Gabrie1, the metrics of the vRealize Operation Manager "Wh" / "JOULE" related to a HOST running ESXi report values ​​that are not correlated with the "electrical consumption" obtainable via vCenter / IPMI. And I must also add that the absurd insistence with which he suggests me to set the vCPUs of various of my virtual machines to "zero" is starting to get annoying.


Regards,
Ferdinando

Gabrie1
Commander
Commander

I got this response from VMware Support, but not satisfied with it, since he seems to think I want to know VM power usage instead of host power usage. Therefore responded with some more questions and waiting for an answer. But this was the first reply:

 

This is a known bug and the engineering team is working on getting it resolved soon (early Q2 2023 - upcoming 7.0.3 ESXi release). The issue is not in vROps. The issue is located in ESXi on how power consumption is reported in joules.

There is a workaround in place until the issue is resolved completely.
If the aim of super-metric is, to sum up, the value of the "Power|Total Energy (Wh)" metric on all VMs for the parent Host System object (also will work for Cluster, Datacenter, vCenter), here is the formula that could be used for that purpose:

Super metric formula:

sum(${adaptertype=VMWARE, objecttype=VirtualMachine, metric=power|energy_summation_sum, depth=6})
http://www.GabesVirtualWorld.com
Kinnison
Commander
Commander

Hi,


Interesting, except that I'm running the most recent version of ESXi 8 and the power consumption of a virtual machine was (before), and remains (now), somehow (of course IMHO) "unrealistic".


Regards,
Ferdinando

0 Kudos