Collector 'Alibaba Cloud-AnalyticDB MySQL' 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 regions to collect data from |
regions[#] |
str | Required | Region ID. For example: 'cn-hangzhou' See the appendix for the complete list |
2. Configuration Example¶
Specified Regions¶
Collect data from Hangzhou and Shanghai regions
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_adb",
"tags": {
"PayType" : "Prepaid",
"Mode" : "flexible",
"LockMode" : "Unlock",
"DBClusterId" : "amv-bp163885f8q21****",
"ConnectionString" : "amv-bp163885f8q21****.ads.aliyuncs.com",
"DBClusterType" : "Common",
"CommodityCode" : "ads_pre",
"LockReason" : "instance_expired",
"VPCId" : "vpc-bp13h7uzhulpuxvnp****",
"RegionId" : "cn-hangzhou",
"VSwitchId" : "vsw-bp1syh8vvw8yech7n****",
"DBVersion" : "5.0",
"DBClusterStatus" : "Running",
"ResourceGroupId" : "rg-acfmyiu4ekp****",
"DBClusterNetworkType": "VPC",
"DBClusterDescription": "adb_test",
"ZoneId" : "cn-hangzhou-h",
"Engine" : "AnalyticDB",
"name" : "drdshbga17ld92lb"
},
"fields": {
"Expired" : "false",
"Port" : "3306",
"ComputeResource" : "16ACU",
"ReservedACU" : "32ACU",
"StorageResource" : "24ACU",
"ExpireTime" : "2022-07-01T09:50:18Z",
"CreateTime" : "2022-04-01T09:50:18Z",
"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 a unique identifier. fields.message is a JSON serialized string.
X. Appendix¶
Please refer to the official Alibaba Cloud documentation: