When creating a Super Metric formula there are two options for specifying the metric key.
- One option is to use the "metric" keyword, for example:
${this, metric=xyz|xyz}
Using the "metric" keyword means that VMware Aria Operations will find the exact match for metric key.
As metric keys are unique, this keyword will never return more than one metric. (e.g. cpu|usage)
- The other option available is to use the "attribute" keyword, for example:
${this, attribute=xyz|xyz}
Using the "attribute" keyword means that VMware Aria Operations will find the exact match for metric key and also all of the matching instanced metric keys for the specified metric key. (e.g. cpu:1|usage, cpu:2|usage, etc.)
In this case we potentially have a collection of metrics, so in order to do numeric operations with this collection VMware Aria Operations will need to convert it into single number.
This conversion is done by aggregation functions (sum, max, avg, etc.).