You can configure an alert rule for an ApsaraDB RDS for MySQL instance. If the conditions specified in the alert rule are met, the system notifies all contacts in the specified contact groups.
Background information
The monitoring and alerting feature of ApsaraDB RDS is implemented by using CloudMonitor. CloudMonitor allows you to configure metrics and alert rules. When a condition specified for an alert rule is met, CloudMonitor sends alert notifications to all alert contacts in your alert contact group by sending emails. You can manage the alert contact group that corresponds to a monitoring metric. When an alert is triggered, the system can notify alert contacts in the alert contact group at the earliest opportunity.
For more information about how to configure alert rules for RDS instances that run other database engines, see the following topics:
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.
- Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the left-side navigation pane, click Monitoring and Alerts.
On the page that appears, click the Alerts tab.
In the right-side section of the page, turn on the Initiative Alert switch.
Create an alert rule
- Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the left-side navigation pane, click Monitoring and Alerts.
On the page that appears, click the Alerts tab.
In the right-side section of the page, click Set Alert Rule to go to the CloudMonitor console.
Create an alert contact group. For more information, see Create an alert contact or alert contact group.
Create an alert rule. For more information, see Create an alert rule.
NoteYou can also configure CloudMonitor to automatically monitor resources based on tags. For more information, see Monitor resources based on tags.
Manage an alert rule
- Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the left-side navigation pane, click Monitoring and Alerts.
On the page that appears, click the Alerts tab.
In the right-side section of the page, click Set Alert Rule to go to the CloudMonitor console.
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:
Details: View the alert rule details.
Alert History: View the alerts that were triggered by the alert rule within a specific time range.
Modify: Modify an alert rule. For more information, see Create an 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.
Enable: Enable the alert rule. After you disable the alert rule, no alerts are generated even if the conditions of the alert rule are met.
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.