Skip to content

Collector 'Alibaba Cloud-DTS' Configuration Manual

Before reading this document, please read:

Tip

Before using this collector, you must install the "Integration Core Package" and its accompanying third-party dependencies.

1. Configuration Structure

The configuration structure of this collector is as follows:

Field Type Required Description
Regions List Required List of DTS regions to be collected
regions[#] str Required Region ID. For example: 'cn-hangzhou'
See the appendix for the complete list

2. Configuration Example

aliyun_dts_configs = {
    'regions': [ 'cn-hangzhou' ],
}

3. Data Reporting Format

After data is successfully synchronized, you can view the data in the "Infrastructure-Resource Catalog" of TrueWatch.

An example of the reported data is as follows:

{
  "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"   : "{Instance JSON Data}"
  }
}
Note

Fields in tags and fields may change with subsequent updates.

Tip

The value of tags.name is the instance ID, which serves as a unique identifier. The fields.message is a JSON serialized string. The tags.jobType indicates the task type of the DTS instance, with possible values: 1. MIGRATION: Migration (default), 2. SYNC: Synchronization, 3. SUBSCRIBE: Subscription. The tags.status indicates the status of the DTS instance, with possible values detailed in the appendix document.

X. Appendix

Please refer to the official Alibaba Cloud documentation: