You can use CM to set alarm rules for important metrics during data sync. CM will send notifications to you as soon as a metric becomes abnormal, so you can take corresponding measures.
This document describes how to set notification rules for metric alarms, including the trigger condition and scope of metric alarms, form of notifications, time period for notifications, and recipient group.
Adding an alarm policy
Log in to the CM console.
Select Alarm Configuration > Alarm Policy on the left sidebar to enter the alarm policy configuration page.
Click Create and configure a new alarm policy as detailed below:
|Configuration Type||Configuration Item||Description|
| Basic Info
||Policy Name||Enter a custom policy name.|
|Remarks||Enter custom policy remarks.|
|Monitoring Type||Select Tencent Cloud services.|
||Select the desired policy type of the Tencent Cloud service to be monitored. Here, select DTS/Data sync.
- Data migration: Metrics in data migration scenarios are monitored.
- Data sync: Metrics in data sync scenarios are monitored.
- Data subscription (Kafka Edition): Metrics in data subscription (Kafka Edition) in new DTS are monitored.
- Data subscription: Metrics in data subscription in old DTS are monitored.
- If you select Instance ID, the alarm policy will be associated with the selected instance.
- If you select Instance Group, the alarm policy will be associated with the selected instance group.
- If you select All Objects, the alarm policy will be associated with all instances under the current account.
- Trigger Condition: You can choose to make the alarm triggered when any or all metrics meet the set condition.
- Configuration example: The metric is "RPS read from source database", the statistical period is 1 minute, the comparison relation is "<", the threshold is "1", and the consecutive monitoring duration is "3 consecutive data points".
- Configuration effect: The "RPS read from source database" metric is collected once every minute. If the number of rows read by DTS from the source database per second is below 1 for three consecutive times, an alarm will be triggered.
- Alarm frequency: You can customize the frequency for repeated alarm notifications, such as once every hour, 2 hours, or day.
||Click Select template and select a configured template from the drop-down list. For detailed configurations, see Configuring Trigger Condition Template. If a newly created template is not displayed, click Refresh on the right.|
|Configure Alarm Notification
||You can select a preset or custom notification template. Each alarm policy can be bound to three notification templates at most.|
After configuring the above items, click Save.
Modifying an alarm policy
- Log in to the CM console.
- Select Alarm Configuration > Alarm Policy on the left sidebar and click the name/ID of the policy to be modified to enter the alarm policy management page.
- Modify information such as trigger condition, alarm object, and alarm notification.