I’m trying to read the energy consumtpion of a virtual machine using PowerCLI.
I tried using the Get-Stat cmdlet like this :
$entity = Get-VM -Name Test Get-Stat -Entity $entity -Stat "power.power.average" -Realtime -MaxSamples 1
But the output is very high and unreal like 1500 watts for a single vcpu and 2 GB of ram.
Do i need to enable a metric ? How can i do that?
Thanks in advance