When creating an alert you may want the alert description and parameters to reflect what actually happened in the alert. For example, which dimension was actually dominant, when did the alert start, etc.
You can apply dynamic variables to the alert name and description, with the following possible variables:
{{dimension}} |
See the Using the {{dimension}} value section. |
{{what}} |
The measure used in the alert |
{{#tagname}} |
The value of the tags defined for the metric. |
{{open_time}} |
The time the anomaly of the first metric opened. |
{{open_time_epoch}} |
The time the anomaly of the first metric opened (in epoch format) |
{{trigger_time}} |
The time the trigger was sent. |
{{trigger_time_epoch}} |
The time the trigger was sent (in epoch format) |
{{triggerId}} |
Unique identifier of the alert trigger |
{{duration}} |
The duration of the anomaly (from the moment it started to the moment the trigger was sent). |
{{delta}} |
The numerical value in the metric value from the baseline. |
{{direction}} |
Whether the change is a spike/drop/anomaly. |
{{impact}} |
The financial impact of the alert. |
{{state}} |
The state of the alert (open/updated/closed). |
Using the {{dimension}} value
To add a variable to your alert name or description, use curly brackets - {{variable}} - as per the example below. The example shows the dimension name country used in the Description.
Note that variables are case sensitive.
Notes:
- If the alert is pushed for one variable (in the above example, country=US), Anodot replaces the variable with the actual value of the variable (US) in the alert notification.
- When an alert name includes variables, the text of the opening trigger is shown, so you can easily search for it.
- If the alert includes two or more variable values, Anodot replaces the variable with multiple values accordingly in the alert notification (US, UK).
- Another use case for alert variables is to parametrize Alert actions, as shown in the following URL:
https://customer.othersystem/goto_view?site={{site}}&host={{host}}&start_time={{open_time}}&end_time={{trigger_time}}
- For more details on the business impact of alerts, see Measuring Business Impact.