Create a super metric when you want to check the health of your environment, but cannot find a suitable metric to perform the analysis.
- Select Add icon. and click the
- Enter a meaningful name for the super metric such as SM-AvgVMCPUUsage% in the Name text box.
- Define the formula for the super metric.
Select each function or operator to use and the metrics or attribute types to use in each function or with each operator. For example, to add a super metric that captures average CPU usage across all virtual machines, perform the following tasks.
- For Function, select avg.
- In the Operators text box, select the left parenthesis, then select the right parenthesis. Click between the two parentheses to position your cursor in the formula.
- In the Adapter Type text box of the Object Types pane, select vCenter Adapter.
- Click the This object icon, and from the list of object types, select Virtual Machine.
If the This object icon is not selected, the super metric function displays the object with a long description.
- In the Attribute Types pane, expand the CPU category, scroll down, and double-click the Usage (%) metric.
The formula appears as a mathematical function. To view the formula in a textual format, click the Show Formula Description icon. If the formula syntax is wrong, an error message appears. The formula ends with depth=1. With depth=1, you assign the super metric to an object type that is one level above virtual machines in the relationship chain so that the super metric appears as a metric for that object type. With depth=2, you assign the super metric to an object type that is two levels above virtual machines, for example a Cluster.
- To assign the super metric to an object type at depth=1, type 2 instead of 1, so that depth=2 is displayed.
- Check that the super metric formula has been created correctly.
- Click the Visualize Super Metric icon.
- In the Objects pane, double-click one of the objects listed.
A metric graph is displayed showing values of the metric collected for the object. Verify that the graph shows values over time.
- Click Save.
- Associate the super metric with an object so that vRealize Operations Manager calculates the super metrics for the target objects and displays it as a metric for the object type.
- In the Super Metrics workspace, select the super metric.
- In the Object Types tab, click the Add icon.
- In the Select Object Type text box, select the required object. For example, if you created your super metric for Host Systems under the vCenter Adapter, expand vCenter Adapter, and select Host Systems.
- Click Select.
After one collection cycle has completed, the super metric appears on each of the objects of the specified object type. For example, if you defined the super metric to calculate average CPU usage across all virtual machines, and the super metric is assigned to the Host System object type. After one collection cycle has completed, the super metric appears as a super metric on each host.
What to do next
In the > Attributes workspace, you must select and enable each super metric. See Custom Policies. Wait at least one collection cycle for the super metric to start collecting and processing data. Then review your super metric in the All Metrics tab.