To resolve issues with content using the Reclaimable|Oversized VMs|CPU (vCPUs) and Reclaimable|Oversized VMs|Memory (Kb) metrics for Cluster compute resources, replace the metrics with custom Super Metrics.
To create the Super metrics, you must have vRealize Operations Manager Advanced, or Enterprise.
- Log into the vRealize Operations Manager UI as an administrator.
- Navigate to Administration > Configuration > Super Metrics.
- Click Add New Super Metric.
- Enter Reclaimable CPU (vCPUs) for the Name.
- Copy and Paste the below formula into the formula field:
sum(${adaptertype=VMWARE, objecttype=VirtualMachine, metric=summary|oversized|vcpus, depth=2})
- Click Save.
- Under Object Types, click Add Object Type.
- Filter for Cluster Compute Resource and select that entry under vCenter Adapter, then click Select.
- Repeat steps 3-8 to create a Super Metric named Reclaimable Memory (Kb) with the bellow formula:
sum(${adaptertype=VMWARE, objecttype=VirtualMachine, metric=summary|oversized|memory, depth=2})/1048576
- Navigate to Administration > Policies > Policy Library.
- Select the desired Policy and click Edit Selected Policy.
- Under section 5. Collect Metrics and Properties, filter for Reclaimable CPU (vCPUs).
- Select the Super Metric Type entry created in steps 3-8 for the Object Type of Cluster Compute Resource, and change the State to Local Enabled.
- Repeat steps 12-13 for the Reclaimable Memory (Kb) Super Metric.
- Click Save.
The Super Metrics will begin collecting within a few collection cycles.
Replace the Reclaimable|Oversized VMs|CPU (vCPUs) and Reclaimable|Oversized VMs|Memory (Kb) metrics used in a copy of the Reclaimable Resources from Oversized VMs in a cluster View with the newly created Super Metrics.
- Navigate to Dashboards > Views.
- Filter for Reclaimable Resources from Oversized VMs in a cluster, then select the entry and click Clone View.
- Rename the cloned View if desired.
- Click Remove next to the metrics located under the Data tab.
- Click 4. Data to expand the data section.
- Filter for Reclaimable CPU (vCPUs).
- Drag the Super Metric into the Data field on the right.
- Repeat steps 5-6 for the Reclaimable Memory (Kb) Super Metric.
- Click Save.
Replace the View used in the
Reclamation Report - vSphere Clusters, and
Reclamation Report - Environment reports with the cloned View.
- Navigate to Dashboards > Reports.
- Filter for Reclamation Report - vSphere Clusters, then select the entry and click Clone Template.
- Rename the cloned report if desired.
- Click Remove next to the Reclaimable Resources from Oversized VMs in a cluster View in the main panel.
- Click 2. Views and Dashboards to expand the section.
- Set Data Type to Views, and filter for the cloned View you created in the previous section.
- Drag the cloned View into the field on the right between Reclaimable Resources from Idle VMs in a cluster and Reclaimable Resources from Powered Off VMs in a cluster.
- Click Save.
- Repeat steps 2-8 for the Reclamation Report - Environment report.