All Products
Search
Document Center

Database Autonomy Service:Configure alert rules

Last Updated:Jul 26, 2024

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.

Create an alert rule

  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, click Add Rule in the upper-right corner.新增规则

  4. In the Add Rule dialog box, configure the parameters that are described in the following table. Then, click OK.

    Parameter

    Description

    Rule Name

    The name of the alert rule.

    Type

    The type of the alert rule. Valid values: Event Alert and Threshold Alert.

    • Event Alert: You can select a specific event that triggers the alert rule.

    • Threshold Alert: You can select a metric and specify the threshold that triggers the alert rule.

    Description

    The conditions that trigger the alert rule. Available metrics vary based on the specified Type parameter. For more information, see the Alert metrics section of this topic.

    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 message, webhook, and email.

    Note

    Webhook is supported for DingTalk, WeCom, Lark, and Application Real-Time Monitoring Service (ARMS).

  5. After the alert rule is created, you can configure alerting. For more information, see Configure alerting.

Manage an alert rule

  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 the created alert rules.

    管理告警规则

    Find the alert rule that you want to manage and click the buttons in the Actions column. 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 the parameters that you can configure for alert rules, see the "Create an alert rule" section of this topic.

    • 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.

Alert metrics

Alert metrics

Event alerts

Alert 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

Threshold alerts

Important

If you connect Alibaba Cloud database instances or self-managed databases to DAS, the access mode falls into the category of centralized-mode access.

Alert 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

N/A

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

Count

Supported

Connections of MySQL Instance

Count

Supported

Replication Delay of MySQL Instance

s

Supported

Cache Hit Rate of MySQL Instance

%

Supported

Slow SQL Statements of MySQL Instance per Hour

Count

Supported

MySQL Data Storage Space Usage

%

Supported

MySQL Log Storage Space Usage

%

Supported

Connected Redis Clients

Count

Supported

Cache Hit Ratio of Redis

%

Supported

Memory Fragmentation Rate of Redis

%

Supported

PostgreSQL IOPS Usage

%

Supported

PostgreSQL iNode Usage

%

Supported

PostgreSQL Space Usage

%

Supported

PostgreSQL TPS

Count

Supported

PostgreSQL Connection Usage

%

Supported

Average Number of Active Connections per CPU for PostgreSQL

Count

Supported

PostgreSQL Longest Bloat Duration

Count

Supported

PostgreSQL CPU Utilization

%

Not supported

PostgreSQL Memory Usage

%

Supported

MongoDB Instance Connections

Count

Supported

MongoDB Instance Cache Usage

%

Supported

Current Operations to Be Performed on MongoDB Instance

Count

Supported

Dirty Ratio in Cache of MongoDB Instance

%

Supported

Slow SQL Statements of MongoDB Instance per Hour

Count

Not supported

Not supported

N/A