Database Autonomy Service (DAS) provides the alerting feature. This feature allows you to customize alert rules. When an alert rule is triggered by a database instance, DAS automatically sends an alert notification. This topic describes how to configure and manage alert rules in the DAS console before you configure alerting.

Add alert rules

  1. Log on to the DAS console.
  2. In the left-side navigation pane, choose Alert Service > Alert Rules.
  3. In the upper-right corner of the Alert Rules page, click Add Rule. Add an alert rule
  4. In the Add Rule dialog box, configure the parameters described in the following table. Then, click OK.
    L
    Parameter Description
    Rule Name Enter a name for the alert rule.
    Type Valid values: Event Alert and Threshold Alert.
    • Event Alert: You can select a specific event that triggers alert rules.
    • Threshold Alert: You can select a metric and specify the threshold that triggers alert rules.
    Description The conditions that trigger alert rules. Available metrics vary based on the value of the Type parameter. For more information, see Comparison of alert metrics supported by different access modes.
    Alert Interval The interval at which the system sends alert notifications to you when the alert rule is triggered.
    Effective Time The period of time within which the alert rule takes effect.
    Notification Method The method that is used to send alert notifications. DAS can send alert notifications by SMS, DingTalk chatbot, and email.
  5. After the alert rule is created, you can configure alerting. For more information, see Configure alerts.

Manage alert rules

  1. Log on to the DAS console.
  2. In the left-side navigation pane, choose Alert Service > Alert Rules.
  3. On the Alert Rules page, manage existing alert rules.
    Manage alert rules
    In the Actions column corresponding to an existing alert rule, you can perform the following operations:
    • Search: View the details and alert history of the alert rule.
    • Edit: Modify the alert rule. For more information about parameters that you can configure for alert rules, see Configuration parameters.
    • Disable: Disable the alert rule.
    • Delete: Delete the alert rule.
    Important After you modify, disable, or delete an alert rule, all alert templates that contain the alert rule are affected. Proceed with caution.

Comparison of alert metrics supported by different access modes

Note When you connect Alibaba Cloud database instances or self-managed databases to DAS, the access mode falls into the category of centralized-mode access.
Table 1. Event alerts
Metric Number of alert occurrences
Database Disconnected 1, 3, 5, 7, or 10 times consecutively
Replication Interruption of MySQL Instance 1, 3, 5, 7, or 10 times consecutively
Table 2. Threshold alerts
Metric Threshold unit Centralized-mode access Host-mode access Number of alert occurrences
Host CPU Utilization % Not supported Supported 1, 3, 5, 7, or 10 times consecutively
Host LOAD_1min None Not supported
Host Memory Usage % Not supported
Sent Bandwidth Usage by Host Network % Not supported
Received Bandwidth Usage by Host Network % Not supported
Disk Usage of Host Root Partition % Not supported
Active Sessions of MySQL Instance N/A Supported
Connections of MySQL Instance N/A Supported
Replication Delay of MySQL Instance s Supported
Cache Hit Rate of MySQL Instance % Supported
Slow SQL Statements of MySQL Instance per Hour N/A Supported
MySQL Data Storage Space Usage % Supported
MySQL Log Storage Space Usage % Supported
Connected Redis Clients N/A Supported
Cache Hit Ratio of Redis % Supported
Memory Fragmentation Rate of Redis % Supported
MongoDB Instance Connections N/A Supported
MongoDB Instance Cache Usage % Supported
Current Operations to Be Performed on MongoDB Instance N/A Supported
Dirty Ratio in Cache of MongoDB Instance % Supported
Slow SQL Statements of MongoDB Instance per Hour N/A Supported
PostgreSQL IOPS Usage % Supported
PostgreSQL iNode Usage % Supported
PostgreSQL Space Usage % Supported
PostgreSQL TPS N/A Supported
PostgreSQL Connection Usage % Supported
Average Number of Active Connections per CPU for PostgreSQL N/A Supported
PostgreSQL Longest Bloat Duration N/A Supported
PostgreSQL CPU Utilization % Supported
PostgreSQL Memory Usage % Supported