Cloud Operations Tech Tips vCenter Operations vRealize Operations

vCenter Operations Management Tech Tips: Tip #29 – vCloud OvDC Admin vCOps Custom Dashboard – Part 2

original bd 6In the first part for this series we’ve installed and configured vCloud adapter for vC Ops.

The OvDC Admin Custom Dashboard includes many elements related to one another which are mostly rely on Super Metrics. In this post we will create the Virtual Machine related Super Metrics.

Super Metrics

As I mentioned in my previous post, OOTB the vCloud adapter will not show performance metrics for vCloud resource kinds, it will only show the logical structure.

PvDC > OvDC > vApp > VM > Datastore

For that reason, I will be using vC Ops 5.8.1 in order to create quite a few Super Metrics, starting with Virtual Machines related ones.

VM Configured Memory in GB

sum(This ResourceMemory|Guest Configured Memory (KB))/1048576

Memory|Guest Configured Memory (KB) = Resource Kinds > Virtual Machine > Attribute Kinds: Memory > Guest Configured Memory (KB)

Note: before double clicking the metric attribute kind, click on the THIS button first01. VM Configured Memory in GB

VM Snapshot Used Space (%)

(sum(This ResourceDisk Space|Snapshot Space (GB))/sum(This ResourceDisk Space|Virtual machine used (GB)))*100

Disk Space|Snapshot Space (GB) = Resource Kinds > Virtual Machine > Attribute Kinds: Disk Space > Snapshot Space (GB)
Disk Space|Virtual machine used (GB) = Resource Kinds > Virtual Machine > Attribute Kinds: Disk Space > Virtual machine used (GB)

Note: before double clicking the metric attribute kind, click on the THIS button first02. VM Snapshot Used Space

The next two SM will use to show how much vCPU and vMemory is recommended for each VM in the OvDC based on how much resources are being wasted.

I used +1 basis in my calculations based on the fact that potentially vC Ops can recommend removing all vCPU/vMem for an idle VM. This doesn’t make a lot of sense so I did some manipulation to provide the minimum recommended number.

VM Recommended vCPU Based on +1 vCPU

(sum(This ResourceCPU Usage|Provisioned CPU Cores)-sum(This ResourceWaste|vCPU|Total))+1

CPU Usage|Provisioned CPU Cores = Resource Kinds > Virtual Machine > Attribute Kinds: CPU > Provisioned CPU Cores
Waste|vCPU|Total = Resource Kinds > Virtual Machine > Attribute Kinds: Waste > vCPU > Total

Note: before double clicking the metric attribute kind, click on the THIS button first03. VM Recommended vCPU Based on 1 vCPU

VM Recommended vMem Based on +1GB

((sum(This ResourceMemory|Guest Configured Memory (KB))-sum(This ResourceWaste|Memory|Total))/1048576)+1

Memory|Guest Configured Memory (KB) = Resource Kinds > Virtual Machine > Attribute Kinds: Memory > Guest Configured Memory (KB)
Waste|MemoryTotal = Resource Kinds > Virtual Machine > Attribute Kinds: Waste > Memory > Total

Note: before double clicking the metric attribute kind, click on the THIS button first04. VM Recommended vMem Based on 1GB

In the next part for this series, we will be focusing on creating PvDC, OvDC and vApp level Super Metrics, stay tuned!

Please send us your feedback and comments about this #TechTip below, as well as requests for #TechTips on other topics. And yes, follow us on twitter @vcenterops to get the latest on vCenter Operations and Cloud Operations Management topics. For a full list of all blog posts in the vCenter Operations Management Tech Tips series, search for posts with the tag ‘tech tips‘, or just visit http://blogs.vmware.com/management/tag/tech-tips