Quantcast
Channel: VMware Communities : All Content - vRealize Operations Manager
Viewing all articles
Browse latest Browse all 5485

Right Size recommendation Super Metric - help?

$
0
0

Hi,

 

I'm trying to create a supermetric that is the sum of the "Recommended number of vCPUs to Remove" and apply this to a custom group of VM's.  I only want to create the sum of the machines that are flagged with the CPU Is Oversized flag though... not all the VM's in the collection (as the VM's that are undersized have a negative number for vCPUs to remove).

 

To get the sum of all vCPUs to remove for the entire group the supermetric is simple:

 

sum(${adapterkind=VMWARE, resourcekind=VirtualMachine, attribute=cpu|numberToRemove, depth=1})

 

I can't find a way to do this summation for just the ones flagged as oversized for CPU.  Since the CPU oversize flag is either a 1 or 0 I tried doing a sum of (recommended vcpus to remove * cpu oversized flag) but I can't get it to accept any format I've tried.

 

something like this doesn't work:

 

sum(${adapterkind=VMWARE, resourcekind=VirtualMachine, attribute=cpu|numberToRemove, depth=1}*${adapterkind=VMWARE, resourcekind=VirtualMachine, attribute=cpu|numberToRemove, depth=1})

 

When I try I get "Cannot convert aggregated result to a number".

 

I can get this detail in a custom view with filtering but I want the data as a supermetric to include in a custom dashboard and to be able to track this summation over time.

 

Any ideas?

 

Thanks,

 

Ken


Viewing all articles
Browse latest Browse all 5485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>