Data Transmission Service (DTS) lets you set alert rules on task-level metrics so that you're notified when a data synchronization, data migration, or change tracking task fails, falls behind, or times out.
DTS supports two alerting approaches:
| Approach | Where to configure | When to use |
|---|---|---|
| DTS console alerts | DTS task settings (this topic) | Configure per-task alert thresholds directly on the task |
| CloudMonitor alerts | CloudMonitor console | Manage DTS alert rules alongside other Alibaba Cloud service alerts |
Alert rules in the DTS console control when alerts fire. To receive notifications, you must also configure an alert subscription in CloudMonitor. See .
Prerequisites
Before you begin, ensure that you have:
-
A DTS task, or have reached the Advanced Settings step when creating a DTS task. For details, see Overview of data synchronization scenarios, Overview of data migration scenarios, or Overview of change tracking scenarios
Alerting metrics
The following table lists the metrics available for each task type, their default states, and what each metric indicates.
| Task type | Metric | Default state | What it indicates |
|---|---|---|---|
| Data synchronization | Synchronization Latency | Disabled | The delay between changes on the source and their arrival at the target. A high value means DTS cannot keep up with source changes. |
| Data synchronization | Full Synchronization Timeout | Enabled | The full data synchronization task has been running longer than the configured threshold (default: 24 hours). |
| Data synchronization | Synchronization Status | Disabled | The task has stopped or encountered an error. Enable or disable only — threshold is not configurable. |
| Data migration | Incremental data migration latency | Disabled | The delay in applying incremental changes to the target. |
| Data migration | Full Synchronization Timeout | Enabled | The full migration phase has exceeded the time threshold. |
| Data migration | Migration Status | Disabled | The migration task has stopped or encountered an error. Enable or disable only — threshold is not configurable. |
| Change tracking | Change Tracking Latency | Disabled | The delay in tracking changes from the source. |
| Change tracking | Change Tracking Status | Disabled | The change tracking task has stopped or encountered an error. |
| Data verification | Full Data Verification Status | Depends on task config | The full data verification task status. |
| Data verification | Full Data Verification Inconsistency | Depends on task config | Inconsistencies detected during full data verification. |
| Data verification | Incremental Data Verification Status | Depends on task config | The incremental data verification task status. |
| Data verification | Incremental Data Verification Latency | Depends on task config | The delay in incremental data verification. |
| Data verification | Incremental Data Verification Inconsistency | Depends on task config | Inconsistencies detected during incremental data verification. |
| DTS Insight | DTS Insight active diagnostic alarm | Enabled | DTS Insight has detected an active issue requiring attention. |
For data verification metrics, the default state depends on the alert settings you specified when configuring the verification task. See Configure a data verification task.
Configure alerts when creating a DTS task
-
In the Advanced Settings step, set Monitoring and Alerting to Yes.
-
In the Set Alert Rule section, set the time threshold for failure alerts or latency alerts.
-
Complete the remaining DTS task configuration steps.
Configure alerts for an existing DTS task
The procedure is the same for all task types. The following steps use a data synchronization task as an example.
-
Go to the Data Synchronization page using one of the following methods.
DTS console
-
Log on to the DTS console.
-
In the left-side navigation pane, click Data Synchronization.
-
In the upper-left corner, select the region where the task resides.
DMS console
NoteThe actual steps may vary based on the mode and layout of the DMS console. See Simple mode and Customize the layout and style of the DMS console.
-
Log on to the DMS console.
-
In the top navigation bar, move the pointer over Data + AI and choose .
-
From the drop-down list to the right of Data Synchronization Tasks, select the region where the task resides.
-
-
In the Actions column of the target task, choose  > Alert Settings.
Alternatively, click the task ID to open the task details page, then click Alert Settings in the left-side navigation pane.
-
On the Alert Settings page, enable and configure alert rules for the metrics you want to monitor.
-
Configure Synchronization Latency alerts
-
Find Synchronization Latency and click Edit in the Actions column.
-
In the dialog box, select Enable for Status.
-
Set the time threshold for triggering latency alerts.
NoteIf you want to receive alert notifications, you must configure an alert subscription in the CloudMonitor console. For more information, see , Set alert rules for DTS tasks in the CloudMonitor console.
-
Click OK.
-
-
Configure Full Synchronization Timeout alerts
-
Configure Synchronization Status alerts
Find Synchronization Status and click Edit in the Actions column. Select or clear Enable for Status, then click OK.
For Synchronization Status and Migration Status, you can only enable or disable alerting. The alert threshold is not configurable.
-
Modify alert rules
-
Go to the Data Synchronization page using one of the methods described in Configure alerts for an existing DTS task.
-
In the Actions column of the target task, choose  > Alert Settings.
Alternatively, click the task ID to open the task details page, then click Alert Settings in the left-side navigation pane.
-
Click Edit in the Actions column of the metric you want to modify.
-
In the dialog box, update the settings:
-
Disable alerting: Clear Enable for Status.
-
Change the time threshold: Update the value in the Alert Rules field.
NoteIf you want to receive alert notifications, you must configure an alert subscription in the CloudMonitor console. For more information, see , Set alert rules for DTS tasks in the CloudMonitor console.
The threshold for Synchronization Status and Migration Status is not configurable.
-
-
Click OK.
Set up alert notifications
Alert rules in the DTS console determine when an alert fires. To receive notifications, configure an alert subscription in CloudMonitor.
See Configure alert rules for DTS tasks in the CloudMonitor console.
What's next
If you want to receive alert notifications, you must configure an alert subscription in the CloudMonitor console. For more information, see , Set alert rules for DTS tasks in the CloudMonitor console.