RDS offers the instance monitoring function, and sends messages to you after detecting an exception in an instance. In addition, when the instance is locked due to the insufficient disk space, the system sends a message to you.

Background information

Alibaba CloudMonitor offers monitoring and alarming. CloudMonitor helps you set alarm rules for metrics. You must add alarm contacts while set a contact group. The alarm contacts and the contact group are notified immediately when an alarm is triggered in the event of exceptions. You can create an alarm contact group using a related metric.

Procedure

  1. Log on to the RDS console .
  2. Select the region where the target instance is located.
  3. Click the ID of the instance to visit the Basic Information page.
  4. Click Monitoring and Alarms in the left-side navigation pane.
  5. Click the Alarms tab.
  6. Click Set Alarm Rules to open the CloudMonitor console.
    Note
    You can click Refresh to manually refresh the current status of the alarm metric.
  7. Select Alarms > > Alarm Contacts in the left-side navigation pane to open the Alarm Contact Management page.
    Note
    When alarm rules are set for the first time, if the alarm notification object is not a contact of the Alibaba Cloud account of RDS, the alarm contact and alarm contact group must be created first. If you have already set the alarm contact and the alarm contact group, go to Step 10.
  8. Click Create Alarm Contact.
  9. Enter the alarm contact information in the Set Alarm Contact dialog box, click Send verification code, enter the verification code sent to your mailbox, and click Save.
    Note
    • We recommend that you perform the next step to create the alarm contact group after you add all alarm notification objects.
    • Click Edit to modify a contact, or click Delete to delete a contact.
  10. On the Alarm Contact Management page, click the Alarm Contact Group tab.
  11. Click Create Alarm Contact Group.
  12. Fill in Group Name and Description, select a contact from Existing Contacts, click to add the contact to Selected Contacts, and click OK.
    Note
    On the Alarm Contact Group page, you can click to modify a contact group, click X to delete a contact group, or click Delete to delete a contact in the contact group.
  13. After creating the alarm contact group, choose Cloud Service Monitoring > ApsaraDB for RDS from the left-side navigation pane.
  14. Select the region of RDS for which the alarm rule is to be set.
  15. Find the target instance and click Alarm Rules in the Actions column.

    The system displays the metrics of the current alarm.

  16. Click Create Alarm Rule to add new alarm rules.
    Note
    You can click Modify, Disable, or Delete for the metrics as needed.