6.3

Table Of Contents
3 Decide how to combine or compare the metrics.
For example, to nd the ratio of packets in to packets out, you must divide the two metrics. If you are
tracking CPU usage for an object type, you might want to determine the average use, or you might want
to determine what the highest or lowest use is for any object of that type. In more complex scenarios,
you might need a formula that uses constants or trigonometric functions.
4 Decide where to assign the super metric.
You dene the objects to track in the super metric, then assign the super metric to the object type that
contains the objects being tracked. To monitor all the objects in a group, enable the super metric in the
policy, and apply the policy to the object group.
Add Your Super Metric
You add your super metric that captures the average CPU usage across all virtual machines. With a super
metric, you can conveniently track one value instead of several CPU usage metrics for multiple virtual
machines.
Prerequisites
n
Design your super metric formula. See “Design a Super Metric,” on page 105.
n
Become familiar with the user interface to build super metric formulas. See “Building a Super Metric
Formula,” on page 108.
Procedure
1 Select Content > Super Metrics and click the plus sign.
2 Enter a meaningful name for the super metric such as SM-AvgVMCPUUsage% in the Name text box.
3 Dene the formula for the super metric.
Select each function or operator to use and the metrics or aribute kinds to use in each function or with
each operator.
a For Function, select avg.
b In the Operators eld, select the left parenthesis, then select the right parenthesis. Click between
the two parentheses to position your cursor in the formula.
c In the Adapter Type eld of the Object Types pane, select vCenter Adapter.
d From the list of object types that appear, select Virtual Machine.
e In the Aribute Kinds pane, expand the CPU category, scroll down and double-click the Usage (%)
metric .
The formula appears as a mathematical function with the format avg(${adapterkind=VMWARE,
resourcekind=VirtualMachine, attribute=cpu|usage_average, depth=1}). To view the formula in a
textual format, click the Show Formula Description icon. The formula appears as avg(VirtualMachine:
CPU|Usage).
If the formula syntax is wrong, an error message appears. For example, vRealize Operations Manager
veries that the number of opening and closing parentheses are the same and that single values and
arrays are not mixed. You must correct the formula before you can save the super metric.
Visualize Your Super Metric
To verify the super metric formula, display a graph that shows its value during a past time period.
Before you apply the super metric to an object type such as a host system, verify that it works for an object of
that type.
vRealize Operations Manager Customization and Administration Guide
106 VMware, Inc.