You can configure an alert rule to monitor the synchronization latency between child instances of a distributed instance. When a metric reaches a specified threshold, CloudMonitor automatically sends an alert notification. This can help you locate and handle anomalies in a timely manner.
Background information
Tair (Redis OSS-compatible) Global Distributed Cache instances are integrated with the Cloud Monitor platform. Cloud Monitor is a service that monitors Alibaba Cloud resources and internet applications. It helps you improve the uptime of your services and reduce IT operations and maintenance (O&M) costs.
Procedure
Log on to the Cloud Monitor console.
In the left-side navigation pane, choose .
On the Alert Rules page, click Create Alert Rule.
On the Create Alert Rule page, set the parameters for the alert rule.
Configuration
Description
Product
Based on the architecture of the distributed instance, select Redis/Tair DRAM (Standard), Redis/Tair DRAM (Cluster), or Redis/Tair DRAM (Read/Write Splitting) as needed.
NoteYou can enter Redis in the text box to quickly find the product.
Resource Range
The scope of resources to which the alert rule applies. Valid values:
All Resources: The alert rule applies to all resources of the specified cloud service.
Application Groups: The alert rule applies to all resources in the specified application group of the specified cloud service.
Instances: The alert rule applies to the specified resources of the specified cloud service.
Rule Description
The body of the alert rule. The alert rule is triggered when monitoring data meets the alert conditions. Set the rule description as follows:
Click Add Rule.
In the Configure Rule Description panel, set parameters such as the rule name, metric type, metric, threshold, alert level, and alert method.
In this example, Cloud Monitor checks in real time whether the average value of the multi active sync delay time metric over a 5-minute period is greater than 60 seconds. If the result meets the rule conditions, an alert is triggered.
Click OK.
NoteFor more information about how to specify complex alert conditions, see Alert rule expressions.
Mute For
The interval at which to resend an alert notification if the alert is not cleared. Valid values: 5 minutes, 15 minutes, 30 minutes, 60 minutes, 3 hours, 6 hours, 12 hours, and 24 hours.
Cloud Monitor sends an alert notification when a metric value reaches the threshold. If the metric value reaches the threshold again within the mute period, Cloud Monitor does not resend an alert notification. If the alert is not cleared after the mute period ends, Cloud Monitor resends an alert notification.
Effective Period
The period during which the alert rule is active. The rule checks monitoring data for alerts only during this period.
Alert Contact Group
The contact group to which alerts are sent.
The alert notifications of the application group are sent to the alert contacts that belong to the selected alert contact groups. An alert contact group can contain one or more alert contacts.
For more information about how to create an alert contact and an alert contact group, see Create an alert contact or alert contact group.
NoteYou can keep the default values for the other parameters. For more information, see Create an alert rule.
Click Confirm.