Alerts are a powerful feature built into Datav, which currently only supports Graph charts.
When the alert status changes, the system will send an alert notification to the specified user channel. Each team can create and manage their own alert channels, as shown in the Global team example.
Before creating an alert channel, A very important configuration need to be completed : mail SMTP setup, go to the datav installation directory, open the file
datav.conf, find the
SMTP area, and then set it up.
;to separate each address
Defaultis enabled, all alerts of the team will be pushed to the current channel by default. When
Disable Resolve Messageis enabled, only the alert trigger notification will be pushed, but not the alert recovery notification
Alert rules control the trigger conditions and rules for alerts. They are tied to the dashboard chart, So when you delete the chart, you also delete the corresponding alert rule .
Before we can create an alert rule, we need to have a dashboard under the global team. If not, create a new dashboard.
This page is quite complicated, let`s explain them one by one:
Name : Give the alert an appropriate name
Evaluate every + for ：DATAV will query data every X minutes, and then judge whether the alert threshold has been reached according to
Conditions. If the alert threshold has been reached, the current state will be changed from
PENDING, when the
PENDING state is
lasting more than Y minutes, an alert notification will be pushed
Conditions ： When the AVG OF QUERY A matches WITH VALUES AND lasts for more than 5 minutes, the alert threshold is reached AND the current state is set to Pending.
Grafana`s alert granularity is graph level, even if the graph has 1000 curves, only one curve can alert, so Grafana`s alert becomes extremely unusable with multiple curves. By contrast, the Datav is for each curve in the graph
Common cases is the alert channel we created earlier, which is valid for all curves, while
SET EXCEPTIONS can be set separately for the curve level.
Message : In addition to the alert content, you can also add a KV pair as a tag for searching
Click the alert icon in the side menu bar to enter the alert management page, then you can manage the alerts globally, without manually entering a dashboard to set up.
In this page, you can see the rules we have set. Next to the rule name, the team is indicated in brackets. Click the rule name to go to the rule editing page, and click the team name to go to the team page.
In this page, you can see the alarm push of the history. Click "push off" and you can go to the scene snapshot at that time, so that users can quickly view the scene where the problem occurred