ApsaraDB for Redis is integrated with CloudMonitor. You can configure alert rules for ApsaraDB for Redis in the CloudMonitor console. Alerts are immediately generated when thresholds are exceeded or when events are detected. This allows you to make informed business decisions.

Background information

CloudMonitor is a service that monitors Internet applications and Alibaba Cloud resources. For more information, see What is CloudMonitor? You can configure CloudMonitor to notify you of system anomalies. Then, you can automate the anomaly handling process based on alert notifications. CloudMonitor supports the following alert notification methods:

  • Send alert notifications by using emails or DingTalk chatbots.
  • Push events to Message Service (MNS), Function Compute, Log Service, or the specified callback URL. This allows you to automate the anomaly handling process based on your business requirements.

Step 1: Create an alert rule

Note CloudMonitor sends alerts to alert contacts in alert contact groups. You must first create an alert contact and an alert contact group, and add the alert contact to the alert contact group. For more information, see Create an alert contact or alert contact group.
  1. Log on to the ApsaraDB for Redis console.
  2. In the top navigation bar, select the region in which the instance is deployed.
  3. On the Instances page, find the instance and click the instance ID.
  4. In the left-side navigation pane, click Alarm Settings.
  5. In the upper-right corner of the page, click Alert Settings to go to the CloudMonitor console.
  6. In the left-side navigation pane, choose Event Monitoring > System Events.
  7. Click the Event Alert tab.
  8. Click Create Event Alert. In the panel that appears, configure the parameters.
    Parameter Description
    Alert Rule Name Enter the name of the alert rule. The name can be up to 30 characters in length and can contain letters, digits, and underscores (_).
    Event Type Select System Event.
    Product Type Select ApsaraDB for Redis. You can also create alert rules for other cloud services. Follow the preceding steps to create alert rules for other cloud services.
    Event Type Keep the default value All types.
    Event Level Select the event severity level. You can select CRITICAL or WARN.
    Event Name Select the name of the event.
    Note
    • The options for this parameter vary based on the value of the Event Level parameter. For more information about the relationship between event types and event severity levels, see System events for ApsaraDB for Redis. For more information about other cloud services, see System events overview.
    • If you want to test the event notification feature in Step 2, do not select All Events for this parameter.
    Resource Range Select All Resources or Application Groups. If you select Application Groups, you must specify the group information. For more information, see Create an application group.
    Notification Method Select the following notification methods based on your business requirements:
    • Alert Notification: This is the default option. You must specify a contact group and a notification method.
    • MNS Queue: pushes the event alert to a specific queue in MNS. For more information, see What is MNS?.
    • Function Compute: pushes the event alert to a specific function in Function Compute. For more information, see Overview.
    • URL Callback: pushes the event alert to a specific callback URL. CloudMonitor delivers event alerts to the specific callback URL by using the POST or GET method. For more information about the method procedure, see Configure callbacks for system event-triggered alerts.
    • Log Service: pushes the event alert to a specific Logstore in Log Service. For more information, see What is Log Service?.
  9. Click OK.

Step 2: Test the alert rule

After you create a system event-triggered alert rule, you can test the alert rule. You can check whether alert notifications can be received or whether event alerts can be pushed to MNS, Function Compute, Log Service, or the specified callback URL.

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Rules.
  3. Click the Event Alert tab.
  4. Find the alert rule that you want to test and click Test in the Actions column.
  5. In the Create event test panel, select the event that you want to test and modify the content.
    Figure 1. Create an event test
    Create an event test
  6. Click OK.
    CloudMonitor sends an event that contains specific content and an alert is sent by using the specified notification methods. For example, the alert may be sent through a notification and by using MNS.

Related API operations

Operation Description
PutEventRule Creates or modifies an event-triggered alert rule.