This topic describes how to configure alert rules for Data Transmission Service (DTS) tasks in the CloudMonitor console. You can configure threshold-based alert rules and event-based alert rules to help detect abnormal data and troubleshoot errors in a timely manner.

Background information

CloudMonitor allows you to monitor DTS tasks based on latency and task status.
MetricDescriptionAlert rule type
LatencyMonitors the latency of DTS tasks. If the latency of a task exceeds the specified threshold, an alert is triggered. Unit: milliseconds. Threshold-based alert rule
Task statusMonitors the status change of DTS tasks. If the status of a task changes to Error or Restore, an alert is triggered. Event-based alert rule

Configure a threshold-based alert rule

Note The following example demonstrates how to configure a threshold-based alert rule in the new CloudMonitor console.
  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Rules.
  3. On the Alert Rules page, click Create Alert Rule.
  4. Configure parameters for the alert rule.
    The following table describes the parameters.
    ParameterDescription
    ProductThe type of the DTS instance that you want to monitor. Valid values:
    • DTS(Migration): data migration instance
    • DTS(Change_tracking): change tracking instance
    • DTS(Synchronization): data synchronization instance
    Note You can enter DTS in the search box to find a DTS instance type.
    Resource RangeThe range of the resources to which the alert rule is applied. Valid values:
    • All Resources: The alert rule is applied to all instances of the specified type.
      Note An alert rule can be applied to a maximum of 1,000 instances. If you have 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.
    • Application Group: The alert rule is applied to all instances in the specified application group of the specified service.
    • Instances: The alert rule is applied to one or more specific instances. If you select this option, you must select instance IDs from the Associated Resources drop-down list.
    Rule DescriptionThe trigger conditions of the alert rule. To configure the trigger conditions, perform the following steps:
    1. Click Add Rules.
    2. Configure the Alert Rule, Metric Type, Metric, and Threshold and Alert Level parameters.
    3. Click OK.
    Mute ForThe mute period during which CloudMonitor does not resend alert notifications even if the trigger conditions are met.
    Effective TimeThe period during which the alert rule is effective. CloudMonitor monitors the specified instances and generates alerts only within the specified period.
    Alert Contact GroupThe alert contact group to which alert notifications are sent.
    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 contact group.
    Alert CallbackEnter 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.
    Auto ScalingIf you turn on Auto Scaling and select a scaling rule, it is triggered when an alert is generated. You must configure the Region, ESS Group, and ESS Rule parameters.
    Note If you turn on Auto Scaling, you must create a scaling group. For more information, see Create a scaling group.
    Log ServiceIf you turn on Log Service and configure the parameters, the alert information is written to the specified Logstore in Log Service. You must configure the Region, Project Name, and Logstore parameters.
    Note If you turn on Log Service, you must create a project and a Logstore. For more information, see Getting Started.
    Message Service - topicIf you turn on Message Service - topic and configure the parameters, the alert information is written to the specified topic in Message Service (MNS). You must configure the Region and topicName parameters.
    Note If you turn on Message Service - topic, you must create a topic. For more information, see Create a topic.
    No data alarm processing methodThe method that is used to handle alerts when no monitoring data is found. Valid values:
    • )Do not do anything (default value)
    • Send no data alarm
    • Treated as normal
  5. Click OK.

Configure an event-based alert rule

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Event Monitoring > System Event.
  3. Click the Event Alert tab. On this tab, click Create Alert Rule.
  4. Configure parameters for the alert rule.
    ParameterDescription
    Alert Rule NameEnter the name of the alert rule.
    Product TypeSelect Data Transmission.
    Event TypeKeep the default value All types.
    Event LevelKeep the default value All Levels.
    Event NameSelect one or more event names from the drop-down list. If a DTS task (data migration task, data synchronization task, or change tracking task) is resumed or encounters an error, an alert is triggered.
    Resource RangeSelect All Resources or Application Group. If you select Application Group, you must select an application group from the drop-down list.
    Notification MethodSelect an alert notification method. For more information about the parameters, see the table in Step 4.
  5. Click OK.