It is recommended to enable the Guance integration - extension - DataFlux Func (Automata): all prerequisites are automatically installed. Please continue with the script installation.
Note: Please prepare the required Alibaba Cloud AK in advance (for simplicity, you can directly grant global read-only permissions ReadOnlyAccess)
To synchronize monitoring data for Alibaba Cloud PolarDB Oracle, we install the corresponding collection script: "Guance Integration (Alibaba Cloud-PolarDB Collection)" (ID: guance_aliyun_polardb)
After clicking 【Install】, enter the corresponding parameters: Alibaba Cloud AK and Alibaba Cloud account name.
Click 【Deploy Startup Script】, and the system will automatically create a Startup script set, and automatically configure the corresponding startup script.
After enabling, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to immediately run it once without waiting for the scheduled time. After a short wait, you can view the execution task records and corresponding logs.
If you need to collect corresponding logs, you also need to enable the corresponding log collection script. If you need to collect billing information, you need to enable the cloud billing collection script.
We default to collecting some configurations; see the metrics section for details.
In 「Manage / Automatic Trigger Configuration」 confirm whether the corresponding task has an automatic trigger configuration, and at the same time, you can check the corresponding task records and logs for any abnormalities.
On the Guance platform, under 「Infrastructure / Custom」, check if there is asset information.
On the Guance platform, under 「Metrics」, check if there are corresponding monitoring data.
After configuring Alibaba Cloud - Cloud Monitoring, the default metric sets are as follows. You can collect more metrics through configuration. Alibaba Cloud Cloud Monitoring Metrics Details
The collected Alibaba Cloud PolarDB object data structure can be viewed from 「Infrastructure-Custom」.
{"measurement":"aliyun_polardb","tags":{"name":"pc-xxxx","RegionId":"cn-hangzhou","VpcId":"vpc-xxxx","DBNodeNumber":"2","PayType":"Postpaid","DBType":"MySQL","LockMode":"Unlock","DBVersion":"8.0","DBClusterId":"pc-xxxx","DBClusterNetworkType":"VPC","ZoneId":"cn-hangzhou-i","Engine":"POLARDB","Category":"Normal","DBClusterDescription":"pc-xxxx","DBNodeClass":"polar.mysql.x4.medium"},"fields":{"DBNodes":"{JSON Data of Node List}","Database":"[JSON Data of Database Details]","ExpireTime":"","CreateTime":"2022-06-17T06:07:19Z","message":"{JSON Data of Instance}"}}