VMware Cloud Community
OsburnM
Hot Shot
Hot Shot
Jump to solution

How to get CPU Demand Average delta between 2 weeks

Hey gang-- looking for some guidance.

I have a big upgrade of some code on some VMs coming up and the app owners would like a "before & after" on CPU Demand.  They'd like the "average" CPU Demand of a VM on week one along with the "average" CPU demand of a VM on week two; and then the delta between them.

Is there a way to write a View/Supermetric to do this?  Something like this...?

Thanks!

VMNameCPU Avg Demand Week 1CPU Avg Demand Week 2Average Delta
VM153%76%23%
VM247%77%30%
VM351%74%23%
1 Solution

Accepted Solutions
RickVerstegen
Expert
Expert
Jump to solution

I guess you have to create something like this:

1. Make a super metric based on average CPU demand for VMs. Set the object type to virtual machine and enable the super metric in the policy.

2. Create a view and use the previously super metric in that view. Add the interval breakdown column and configure by week. Set time settings on the last 7 days.

Average CPU Demand.jpg

3. Compare the weeks and calculate the delta yourself. It is probably possible to have this calculation also in the view but i didn't have time to figure that out at the moment.

Hope this will provide some guidance for you.

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

View solution in original post

3 Replies
RickVerstegen
Expert
Expert
Jump to solution

I guess you have to create something like this:

1. Make a super metric based on average CPU demand for VMs. Set the object type to virtual machine and enable the super metric in the policy.

2. Create a view and use the previously super metric in that view. Add the interval breakdown column and configure by week. Set time settings on the last 7 days.

Average CPU Demand.jpg

3. Compare the weeks and calculate the delta yourself. It is probably possible to have this calculation also in the view but i didn't have time to figure that out at the moment.

Hope this will provide some guidance for you.

Was I helpful? Give a kudo for appreciation!
Blog: https://rickverstegen84.wordpress.com/
Twitter: https://twitter.com/verstegenrick
OsburnM
Hot Shot
Hot Shot
Jump to solution

This works perfectly fine.  Would be nice to show the delta-- but we're really only comparing from week one to week two.  Thanks for the idea!

0 Kudos
OsburnM
Hot Shot
Hot Shot
Jump to solution

One last followup--  Turns out there's a CPU Demand % at the cluster level already w/o a supermetric that achieves more of what I'm looking for instead of looking at the VM level... so using that and combining with the above Interval Breakdown suggestion, I created a view that's very helpful.  Would still be nice to come up with a "delta" value but basic math at a cluster level between two values is easy enough all the same.

pastedImage_0.png

0 Kudos