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! 

Be the first to comment

Leave a Reply