Global Distributed Cache for Redis has been connected to CloudMonitor. You can configure an alert rule in the CloudMonitor console to monitor the synchronization latency of child instances. This way, you can be notified of synchronization exceptions immediately when they occur, and take measures at the earliest opportunity.

CloudMonitor introduction

CloudMonitor is a service that monitors Alibaba Cloud resources and Internet applications. CloudMonitor helps you improve system service availability and reduce the O&M costs of IT infrastructure.

Procedure

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Rules.
  3. On the Threshold Value Alert tab, click Create Alert Rule.
  4. Configure parameters for the alert rule.
    1. Configure the related resources.
      Figure 1. Configure the related resources
      Configure the related resources
      Parameter Description
      Product Select Redis Cluster.
      Note You can enter Redis in the search box to find the Redis Cluster service.
      Resource Range Select one of the following options based on your business requirements:
      • All Resources: The alert rule is applied to all your instances of the specified service.
      • Instances: The alert rule is applied to one or more specific instances. If you select this option, you must select the child instances and nodes to monitor.
      Note
      • An alert rule can be applied to a maximum of 1,000 instances. If you select more than 1,000 instances, you may not receive notifications when the alert threshold is reached. We recommend that you add resources to service-specific application groups before you create an alert rule.
      • If you select Instances, you can monitor only child instances in a specific region. You can repeat Step 4 to create alert rules for child instances in each region. You can also select All Resources to create alert rules for all child instances at a time.
    2. Configure the alert rule.
      Figure 2. Configure the alert rule
      Configure the alert rule
      Parameter Description
      Alert Rule Enter the name of the alert rule.
      Rule Description Configure the content of the alert rule. When the value of the specified metric meets the rule, an alert is triggered.

      In this example, select the current binlog sync delay time metric that indicates the synchronization latency of binlogs. Configure CloudMonitor to trigger an alert if the average latency is 60 seconds or more for three consecutive periods of 5 minutes.

      Mute for Set a mute period. If an alert is not cleared within the mute period, a new alert notification is sent when the mute period ends.
      Effective Period Set the period during which the alert rule is effective. The system monitors the metric and generates alerts only during the effective period.
    3. Set the notification method.
      Figure 3. Set the notification method
      Set the notification method
      Parameter Description
      Notification Contact Select a contact group in the Contact Group section, and then click the Right arrow icon to move the contact group to the Selected Groups section.
      Note Before you configure an alert rule, you must create an alert contact or contact group in the CloudMonitor console. For more information, see Create an alert contact or alert group.
      Notification Methods

      This parameter is set to Email + DingTalk (Info) and cannot be changed.

      Auto Scaling If you select Auto Scaling, you must specify the scaling rule that is triggered when an alert is generated. For more information, see Overview.
      Log Service If you select Log Service, you must select the region, project, and Logstore to which alert information is written. For more information, see Quick start of Log Service.
      Email Subject If you set Resource Range to Instances, you can specify the subject of the alert notification email. The default email subject is in the format of Service name + Metric name + Instance ID.
      Email Remark Enter the additional information that you want to include in the alert notification email.
      HTTP CallBack Enter a callback URL that is accessible over the Internet. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP Post request. Only the HTTP protocol is supported. For more information, see Use the alert callback feature to report threshold-triggered alerts.
    4. Click Confirm.