Skip to content

Collector 'Alibaba Cloud-PolarDB-X 1.0' Configuration Manual

Before reading this document, please read:

Tip

Before using this collector, you must install the 'Integration Core Package' and its corresponding third-party dependencies

1. Configuration Structure

The configuration structure of this collector is as follows:

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

2. Configuration Example

Specify Region

Collect data from Hangzhou and Shanghai regions

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

3. Data Reporting Format

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

The reported data example is as follows:

{
  "measurement": "aliyun_polardbx_1",
  "tags": {
    "Description"           : "drdshbga17ld92lb",
    "DrdsInstanceId"        : "drdshbga17ld92lb",
    "InstRole"              : "MASTER",
    "Label"                 : "VPC",
    "MachineType"           : "ecs",
    "NetworkType"           : "VPC",
    "ProductVersion"        : "V1",
    "RegionId"              : "cn-hangzhou",
    "ResourceGroupId"       : "rg-acfmv3ro3xnfwaa",
    "Status"                : "DO_CREATE",
    "Type"                  : "PRIVATE",
    "VersionAction"         : "Nothing_To_Do",
    "VpcCloudInstanceId"    : "drdshbga17ld92lb",
    "VpcId"                 : "vpc-bp1pftfpllxna4t75e73v",
    "ZoneId"                : "cn-hangzhou-e",
    "name"                  : "drdshbga17ld92lb"
  },
  "fields": {
    "CreateTime"            : 1692166888000,
    "ExpireTime"            : 1692166888000,
    "message"               : "{Instance json data}}",
  }
}
Note

The fields in tags and fields may change with subsequent updates

Tip

The value of tags.name is the instance ID, which serves as the unique identifier, and fields.message is the JSON serialized string

X. Appendix

Please refer to the official Alibaba Cloud documentation: