Skip to content

Collector Configuration Manual for "Alibaba Cloud-DTS"

Before reading this, please first read:

Before using this collector, you must install the 'Integration Core Package' and its associated third-party dependency packages.

1. Configuration Structure

The configuration structure of this collector is as follows:

Field Type Required Description
Regions List Required List of DTS regions to collect data from
regions[#] str Required Region ID. Example: 'cn-hangzhou'
Refer to the appendix for the complete list

2. Configuration Example

Python
1
2
3
aliyun_dts_configs = {
    'regions': [ 'cn-hangzhou' ],
}

3. Data Reporting Format

After data synchronization is successful, the data can be viewed in the 'Infrastructure - Resource Catalog' section of {{( brand_name }}}.

Example of reported data:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{
  "measurement": "aliyun_dts",
  "tags": {
    "name"         : "dtsy4is3g56xxxxx",
    "DtsInstanceID": "dtsy4is3g56xxxxx",
    "JobType"      : "online",
    "PayType"      : "PostPaid",
    "RegionId"     : "cn-hangzhou",
    "Status"       : "Finished"
  },
  "fields": {
    "CreateTime": "2022-03-23T09:48:12Z",
    "message"   : "{JSON instance data}"
  }
}

Fields in tags and fields may change with subsequent updates.

The value of tags.name is the instance ID, used as a unique identifier. The value of fields.message is a JSON serialized string. The value of tags.jobType indicates the task type of the DTS instance, possible values: 1, MIGRATION: Migration (default), 2, SYNC: Synchronization, 3, SUBSCRIBE: Subscription. The value of tags.status indicates the status of the DTS instance; refer to the appendix document for more details.

X. Appendix

Please refer to the official Alibaba Cloud documentation: