Tair (Redis OSS-compatible) is integrated with CloudMonitor. This integration allows for monitoring of significant system events such as instance minor version update, instance failover, and instance migration. You can subscribe to system events related to your resources. If a system event of a resource meets an alert condition, CloudMonitor automatically notifies the designated contacts.
Background information
CloudMonitor is a service that monitors Internet applications and Alibaba Cloud resources. 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 Simple Message Queue (formerly MNS), Function Compute, Simple Log Service, or the specified callback URL. This allows you to automate the event handling process based on your business requirements.
Procedure
You must 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.
If you have created an alert contact and an alert contact group, skip this step.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose .
NoteYou can also perform the following steps to create a subscription policy by using the System Event menu:
In the left-side navigation pane, choose
.In the Welcome to the New Event Center section, click Create Immediately to create a subscription policy.
On the Subscription Policy tab, click Create Subscription Policy.
On the Create Subscription Policy page, configure the parameters. The following table describes the parameters.
Name: Enter a name for the subscription policy.
Subscription Type: Select System Events. For more information about the Redis and Tair system events supported by CloudMonitor, go to the Redis event page.
Subscription Scope: Set Products to ApsaraDB for Redis, Event Type to Maintenance, Event name to Instance_Failover, and Event Level to Critical. Leave Application grouping, Event Content, and Event Resources unspecified. This indicates that you subscribe to the Instance_Failover system event for all Tair instances across all application groups within your account.
Combined Noise Reduction: Use the default settings.
Notification: Create a notification configuration. Use the default notification method for Custom Notification Method.
When you create a notification configuration, enter a notification configuration name, select Set Notification Group Directly for Notification Settings, select an alert contact group for Contact Group, and then click OK.
NoteFor more information about how to create a notification configuration, see Create a notification configuration policy.
CloudMonitor automatically sends alert notifications based on the notification methods for the alert contacts in the specified alert contact group. For example, if you set a mobile phone number and an email address for an alert contact and use the default notification method for Custom Notification Method, the alert contact receives only alert phone calls, text messages, and emails.
Push and Integration: No configuration is required.
NoteFor more information about how to create a push channel, see Create a push channel.
Click Submit.
Debug event subscription.
On the Subscription Policy tab, click Debug Event Subscription.
In the Create Event Debugging panel, set Products to ApsaraDB for Redis and Name to Instance_Failover.
CloudMonitor automatically generates debugging content in the JSON format.
Click OK.
The Operation successful message appears. CloudMonitor automatically sends a test alert notification to the alert contacts based on the notification methods specified in the subscription policy.
Related API operations
API operation | Description |
Creates or modifies an event-triggered alert rule. |