Hoping you can assist. I would lke to show, graphically, the CPU utilsation for a VM or VMs contained within a service over a 6 month period. I would also like to overlay the average utilisation to demonstrate whether the utilisation has increased or decreased over this period.
Easy enough to do the first part, but do you know how I could also show the average utilisation over this period ? The only "average" overlay I can think of will show a flat average over the entire period. I would really like to demonstrate whether the average has been increasing or decreasing.
Thanks for that, it works like a treat ! Has anyone ever asked whether you could use derived metrics to provide a capacity figure based on the number of VMs remaining ?
DELL-Brian W
59 Posts
786
1
Posted April 10th, 2012 15:00
This is a good use case for a Derived Metric.
A Derived Metric is calculated based on one or more other metrics.
In this case, you could define a Time- or Schedule-driven Derived Metric that's scoped to a Service.
The calculation to get the average CPU utilization for all hosts in the Service would look something like:
avg(#utilization from $scope.hosts.cpus for 30 minutes#)
Once you've created this metric, you will be able to chart this value over time and monitor it for changes.
There's an example of how to create a Derived Metric in How to create a Derived Metric (to count powered on VMs).
Regards,
Brian Wheeldon