Calculated metrics are an additional layer of metrics that derive from either composite metrics you create, or automatically from alert expressions. When a calculated metric is created, Anodot learns its normal and seasonal behavior, and detects anomalies, just as it does for any other metric in your account.
For more information about the differences between these two types of metrics, see the difference between Composite Metrics and Alert Composites.
You can view and manage your calculated metrics from the Management > Calculated Metrics submenu in the Navigation Panel. From this section, you can view and manage your calculated metrics for more effective monitoring, analysis and anomaly detection.
Calculated metrics can be used and searched like any other metric when creating metric expressions anywhere in the system. They can be used when creating Dashboard charts, and used as metric expressions in Alerts.
In this article you will learn about:
- Viewing Calculated Metrics
- Creating Calculated Metrics
- Viewing a Calculated Metric's Summary
- Setting a Composite Delay
- Deleting Calculated Metrics
- The differences between Composite Metrics and Alert Composites
Viewing Calculated Metrics
To view a complete list of the calculated metrics, from the Navigation Panel, click Management > Calculated Metrics. The displayed list shows All metrics by default; use the Type filter in the Filters panel to select to display either Composites or Alert metrics.
The Metrics Usage bar in the top right corner indicates the number of metrics in use by your calculated metrics, in turn helping you to assess your overall account usage. Hover over the bar to see a summary of your current usage.
You can also hover on a row in the list of calculated metrics, and click the View icon to see the original metric in the Alerts Management screen for alert composites or the Metric Explorer for composite metrics.
Creating Calculated Metrics
A calculated metric is a metric expression in Anodot which is based on raw input metrics. You can create such metrics in two ways:
- Composite Metrics [Metric Explorer > Save a Composite]
- Alerts composites - From the alert editor
The procedure to create calculated metrics is the same in all cases. Use the Metric Explorer and Alert Editor functionality to try out, explore and build combinations of functions, parameters and filters before saving the metric.
Limitations
- Calculated metrics cannot be used as input metrics for other calculated metrics.
- A calculated metric can use more than 100K of input metrics, in which case the display will show partial results. The ongoing anomaly detection will continue in the regular way.
To create Metric Expressions, see Metric Expressions.
Viewing a Calculated Metric's Summary
To view a summary of a calculated metric:
- From the main Navigation Panel, click Management > Calculated Metrics.
- Click the metric for which you want to see the summary. The Details Panel is displayed, showing the input and output metrics count for the selected metric, as well as information on the number of alerts the metric is used in, the stream source, and the duration set as composite delay.
- Click the View icon to display the metric in the Metric Explorer or Alert Management screen. You can also click the More button to set the composite delay, as described in the following section.
Setting a Composite Delay
By default, the delays in computing calculated metrics are computed automatically by Anodot; in most cases, the automatic delay setting allows 85% of the input metrics to be included in the calculation.
You can override the default and set delays per calculated metric, which enables you to:
- Set longer delays, which allows all the metrics to be calculated while delaying your alerts.
- Set shorter delays for the alerts, while basing them on partial data.
See also Managing delays in Composite Metrics.
To set a delay:
- Create a new calculated metric, see Creating Calculated Metrics.
- From the main Navigation Panel, click Management > Calculated Metrics.
- For the metric you want to set the delay, click the More icon and select Composite Delay to display the Composite Delay dialog.
- By default, the Auto calculated delay enabled checkbox is selected. Anodot will automatically calculate the percentage of data points received and the corresponding calculation delay time.
To override the default calculated delay:
i. Uncheck the Auto calculated delay enabled checkbox.
ii. Select a Time unit [seconds/minutes/hours].
iii. Type a value in the Delay Time field. Alternatively, drag the data points slider to the relevant value. - Click Confirm.
Deleting Calculated Metrics
Composite metrics are deleted directly from the Calculated Metrics screen.
Alerts should be edited or deleted from the Alert Editor page.
- From the Navigation Panel, click Management > Calculated Metrics.
- Select the composite metric you want to delete and click the More icon.
- Click Delete.
Note: Deleting a composite metric may affect Dashboards and Alerts that composite is used in.
Note the following two error types can be displayed for calculated metrics:
Indicates that the composite delay has changed. Hover over the icon to display a tooltip showing the percentage by which the delay has changed. | |
Indicates invalid or no data. |
The difference between Composite Metrics and Alert Composites
As stated throughout this article, there are two types of calculated metrics within Anodot:
Type | Referred to | Properties | When to use |
Composite metric | @composite |
|
The same composite can be used in multiple alerts with some tailored filtering. |
Alert composite | @alert |
|
The alerts need frequent tuning to get the right noise level. |