This topic describes how to configure an alert rule on an ApsaraDB RDS for PostgreSQL instance. If the monitored metric meets the conditions specified in the alert rule, an alert will be sent to all of the contacts in the associated alert contact group.

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.

Metrics

Storage type Metric
Local SSD Connections usage
CPU utilization
Read-only instance latency
Disk usage
Input/output operations per second (IOPS) usage
Memory usage
Standard or enhanced SSD Active connections per CPU on average
Connections usage
CPU utilization
IOPS usage
Inode usage
Disk usage
Memory usage

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. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Monitoring and Alerts.
  3. Click the Alerts tab.
  4. In the right-side section of the page, turn on the Initiative Alert switch.

Create an alert rule

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Monitoring and Alerts.
  3. Click the Alerts tab.
  4. Click Set Alert Rule to go to the Cloud Monitor console.
    Set Alert Rule button
  5. Create an alert group. For more information, see Create an alert contact or alert group.
  6. 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. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Monitoring and Alerts.
  3. Click the Alerts tab.
  4. Click Set Alert Rule to go to the Cloud Monitor console.
    Set Alert Rule button
  5. 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.