Getting Started: Alerting
Open the Alerts > Rules page and click Create to configure an alert rule for the
temperature metric using the built-in Rule Engine.
The following condition evaluates to
true and creates an alert if the average value for the last 3 samples exceeds
avg() > 50
Open Filter tab in the rule editor to allow out-of-order values and to disable the time filter by setting the grace period to
0. Otherwise measurements older than
1 minute are ignored by the rule engine.
Pro Tip. You can also import the rule from the XML file temperature_rule.xml.
Return to Data Entry page and submit a few commands with the value greater than
series e:br-1905 m:temperature=55
Open Alerts > Open Alerts page in the main menu to view currently opened alerts.
Now insert some commands with low values so that the average of the last three commands is less than
series e:br-1905 m:temperature=20
Reload the Alerts > Open Alerts page to verify that the alert for
temperature-too-high is closed.
To receive alert notifications via email, configure the Mail Client on the Settings > Mail Client page.
Open the rule editor and enable alerts on the Email Notifications tab as illustrated below.
Pro Tip. To send portal screenshots, configure the Web Driver.
Save the rule and insert a few samples on the Data Entry page again. You'll receive the following message when the threshold is exceeded:
Open the rule editor and enable alerts on the Web Notifications tab as illustrated below.
Save the rule and insert commands on the Data Entry page again.
The following message appears in Slack when the average exceeds
50 for the last three samples.
Refer to Outgoing Webhooks for more details.
You have successfully completed the Getting Started guide to Axibase Time Series Database (ATSD).