This topic describes how to configure alert rules for an ApsaraDB RDS for MariaDB TX instance. ApsaraDB for RDS offers the monitoring and alerting feature. If exceptions are detected in your RDS instance or if your RDS instance is locked due to low disk capacity, the system can send notifications to you.

Prerequisites

Your RDS instance resides in a region of mainland China.

Background information

The monitoring and alerting feature of ApsaraDB RDS is implemented by using Cloud Monitor. Cloud Monitor allows you to configure metrics and alert rules. You can also associate alert groups with metrics. If a metric meets the conditions that are specified in an alert rule, alerts are sent as emails to all the contacts in the alert group that is associated with the metric.

Enable the initiative alert feature

The initiative alert feature allows you to establish an alert system for multiple metrics in RDS. An alert notification is sent if an exception of a key metric occurs. You can then handle the exception at the earliest opportunity. For more information, see Enable the initiative alert feature.

  1. Go to the Monitoring and Alerts page.
    1. Log on to the RDS management console, click on the left Instances , and then select a region above.
      Select a region
    2. Find your RDS instance and click its ID. In the left-side navigation pane, click Monitoring and Alerts.
  2. Click the Alerts tab.
  3. In the right-side section of the page, turn on the Initiative Alert switch.

Create an alert rule

  1. Go to the Monitoring and Alerts page.
    1. Log on to the ApsaraDB for RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where your RDS instance resides.
      选择地域
    2. Find your RDS instance and click its ID. In the left-side navigation pane, click Monitoring and Alerts.
  2. Click the Alerts tab.
  3. Click Set Alert Rule to go to the Cloud Monitor console.
    Set Alert Rule button
  4. Create an alert group. For more information, see Create an alert contact or alert group.
  5. Create an alert rule. For more information, see Create a threshold-triggered alert rule.
    Note You can also configure Cloud Monitor to automatically monitor resources based on tags. For more information, see Monitor resources based on tags.

Manage an alert rule

  1. Go to the Monitoring and Alerts page.
    1. Log on to the RDS management console, click on the left Instances , and then select a region above.
      Select a region
    2. Find your RDS instance and click its ID. In the left-side navigation pane, click Monitoring and Alerts.
  2. Click the Alerts tab.
  3. Click Set Alert Rule to go to the Cloud Monitor console.
    Set Alert Rule button
  4. On the Alert Rules page, find the alert rule that you want to manage, and select one of the following operations in the Actions column:
    • View: View details about the alert rule.
    • Alert Logs: View the alerts that were triggered by the alert rule over a specific time range.
    • Modify: Modify the alert rule. For more information, see Create a threshold-triggered alert rule.
    • Disable: Disable the alert rule. After you disable the alert rule, no alerts are triggered even if the metric meets the conditions that are specified in the alert rule.
    • Delete: Delete the alert rule. After you delete the alert rule, the alert rule cannot be restored. You can only re-create the alert rule if necessary.