Configure alert policies
Use alert policies to connect monitored tasks with alert rules and notification targets. A policy defines which tasks to monitor, which alert rule to apply, and where notifications should be sent.
Use the default alert rules provided by NineData, or create custom rules for your own operational thresholds and notification channels.
Before you begin
- Configure at least one alert recipient or webhook. For details, see Configure alert recipients.
- Create the task that you want to monitor. Supported task types include Data Backup, Data Recovery,Data Replication, Data Comparison, Schema Comparison, and Gateway.
Create an alert policy
Procedure
Sign in to the NineData Console.
Open Alert > Alert Policy.
On the Alert Policy tab, click Create Policy.
On the Create Policy page, configure the settings in the table.
Parameter Description Name Enter a policy name. Use a clear name for later search and management. Up to 24 characters are supported. Task Type Select the type of task to be monitored. The supported task types are as follows: - Backup
- Restore
- Replication
- Data Comparison
- Schema Comparison
- Gateway
Related Tasks Select one or more tasks to monitor.
Note: Create alert policies only after the corresponding tasks have been created.New tasks automatically start Configure whether NineData associates newly created tasks of the same type. Alert Rules Select the alert rule. An alert rule defines the trigger conditions and notification methods. NineData provides a default rule that sends alerts by SMS only. To create a custom rule, click Create Now below the rule list or see Create alert rules. Alert Reception (alert method is SMS, phone call, or email) Select the notification target. These options are supported: - User: Users who have joined NineData.
- Receiver Group: Existing receiver groups. If no receiver group exists, click Create Now below the receiver group list. For details, see Configure alert recipients.
Feishu/DingTalk/WeCom Webhook (alert method is Webhook) Select the webhook to use. To create a webhook, see Create a webhook.
Note: This option is displayed only when the Methods in the alert rule includes Feishu/DingTalk/WeCom Webhook.Click Create Policy.
Create alert rules
Sign in to the NineData Console.
Open Alert > Alert Policy.
Click the Alert Rules tab, and then click Create Rule.
On the Create Rule page, configure the settings in the table.
Parameter Description Name Enter a rule name. Use a clear name for later search and management. Up to 24 characters are supported. Task Type Select the task type for the rule. The supported task types are as follows: - Backup
- Restore
- Replication
- Data Comparison
- Schema Comparison
- Gateway
Alert Condition Select the alert condition. The console displays the condition as a logical expression. Supported conditions include: - Status: Alert when the task fails.
- Backup Time: Alert when the full backup time is greater than the threshold.
- Log Latency: Alert when the log backup delay is greater than the threshold.
- Latency: Alert when the replication delay is greater than the threshold.
- Periodic Status: After the user-configured time point is reached, check whether the periodic full replication task has finished. If it has not, alert.
- Runtime: Alert when the replication task's running time is greater than the threshold.
- Comparison Time: Alert when the comparison time is greater than the threshold.
- Results: Alert when the comparison result is Inconsistency.
- Gateway Status: Alert when the gateway status is abnormal.
Note: If a task type supports multiple conditions, click Add to configure more conditions. The alert is triggered when any configured condition is met.Alert Methods Select one or more alert methods. Supported methods include SMS, phone call,email, and webhook (DingTalk, Lark, WeChat Work). Click Create Rule.
Result
Alert policies and alert rules are saved in the current organization. When a monitored task or gateway meets a configured condition, NineData sends notifications through the selected alert methods.