Skip to content

Configuration Manual for the "Alibaba Cloud-PolarDB-X 1.0" Collector

Before reading this, please 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 regions to collect data from
regions[#] str Required Region ID. For example: 'cn-hangzhou'
Refer to the appendix for the full table

2. Configuration Example

Specifying Regions

Collect data from Hangzhou and Shanghai regions

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

3. Data Reporting Format

After data synchronization is successful, you can view the data in the {{( brand_name )}} 'Infrastructure-Resource Catalog'.

An example of reported data is as follows:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  "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}}",
  }
}

Fields in tags and fields may change with subsequent updates

The value of tags.name is the instance ID, used as a unique identifier. fields.message is a JSON serialized string.

X. Appendix

Please refer to the official Alibaba Cloud documentation: