Tair 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 email or DingTalk chatbot.
  • 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 Tair console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click its ID.
  2. In the left-side navigation pane, click Alarm Settings.
  3. In the upper-right corner of the page, click Alert Settings to go to the CloudMonitor console.
  4. In the left-side navigation pane, choose Event Monitoring > System Event.
  5. Click the Event-triggered Alert Rules tab.
  6. Click Create Event Alert. In the panel that appears, configure the parameters described in the following table.
    Parameter Description
    Alert Rule Name 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. Perform the preceding steps to create alert rules for other cloud services.
    Event Type Retain the default value All Types.
    Event Level The event severity level. You can select CRITICAL or WARN.
    Event Name The name of the event.
    Note
    • The options for this parameter vary with the value of the Event Level parameter. For more information about the relationship between event types and event severity levels, see ApsaraDB for Redis. For more information about other cloud services, see 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 Group. If you select Application Group, 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, 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?.
  7. 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. On the page that appears, 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.