VMware Cloud Community
halbewurst
Contributor
Contributor

metric for average cpu / mem usage of all vms in a specific pool

Hi all,

i am not sure if i am blind and there is a preconfigured option to get the metrics for average cpu and memory usage of all vms in a specific pool or if i have to create some kind of super metric for that.

Would be great if someone could help the noob who is asking, thanks and regards.

0 Kudos
1 Reply
RickVerstegen
Expert
Expert

Hi,

Welcome to the community. You can create a super metric for average cpu usage.

For example to see the average CPU utilization for all the virtual machines on a host, the formula would be:

avg(${adaptertype=VMWARE, objecttype=VirtualMachine, metric=cpu|usage_average, depth=1}).

You can verify if the super metric formula is working. by using the Visualize Super Metric button and select the correct Object Type, which is in this example Host System. If information is displayed in the visualization window, you know the formula is correct.

Keep in mind the depth value. The default depth is 1, vRealize Operations Manager searches for objects one level below the object type where you assign the specific metrics. If you have a positive number you go down the relationship chain and if you have a negative number you move up the relationship chain. So depth 0 is cluster, depth 1 is host, depth 2 is virtual machines, etc.

Was I helpful? Give a kudo for appreciation!
Blog: https://rickverstegen84.wordpress.com/
Twitter: https://twitter.com/verstegenrick
0 Kudos