Create a super metric when you want to check the health of your environment, but cannot find a suitable metric to perform the analysis.
- On the menu, click Administration and in the left pane click .
- Click the Add icon.
- 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 the function or operator. Select the metrics or attribute types that you want 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.
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. 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.
- 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 the cursor.
- Optionally, click the This object icon.
If the This object icon is selected, the super metric is calculated using the metrics and properties of the object you use for the super metric. If the icon is not selected, the super metric is calculated using metrics and properties of other objects and the super metric function displays the object with a long description.
- In the Adapter Type text box of the Object Types pane, select vCenter Adapter.
- From the list of object types, select Virtual Machine.
- In the Attribute Types pane, expand All Metrics, and then expand the CPU category, scroll down, and double-click the Usage (%) metric.
- To assign the super metric to an object type at depth=1, type 2 instead of 1, so that depth=2 is displayed.
- Verify 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. vRealize Operations Manager calculates the super metric 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, the super metric appears on each of the objects of the specified object type. For example, you defined the super metric to calculate average CPU usage across all virtual machines and assigned it to the Host System object type. After one collection cycle, 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 begin collecting and processing data. Then review your super metric in the All Metrics tab.