Ingest PolarDB metrics and logs into CloudMonitor 2.0 to monitor your PolarDB clusters.
Prerequisites
-
To ingest metrics, you must activate Prometheus Service and Hybrid Cloud Monitoring.
Limits
-
If you use a RAM user for the integration, you must grant the
AliyunCloudMonitorFullAccesssystem policy to the user. -
After you stop the automatic collection of PolarDB audit logs, you must manually disable SQL Explorer in the PolarDB console.
Billing information
-
Metric ingestion incurs fees for real-time data export from Hybrid Cloud Monitoring and Prometheus Service. Second-level metric ingestion incurs additional fees for second-level monitoring in Hybrid Cloud Monitoring.
-
When you enable audit log collection for a PolarDB for MySQL cluster, SQL Explorer is automatically enabled. SQL Explorer is billed based on the audit log storage you use. For more information, see Billing items.
-
After you collect PolarDB logs in Simple Log Service (SLS), you are charged for data transformation, data shipping, and outbound public traffic. For more information, see Billable items for pay-by-feature.
Data ingestion
-
Log on to the CloudMonitor 2.0 console and select the target workspace. In the navigation pane, click Integration Center, and then click PolarDB.
-
Enter a new Policy name or select an existing one, and then select the Entity Scope.
-
Select the observable data to ingest, and then click OK.
Observable data
Configuration
PolarDB metrics
Tag key: Specify an instance tag key to enrich metrics. The tag key-value pair is automatically added as a label to each metric.
-
After the integration is complete, view the ingested entities and observable data on the Entity Explorer or Database Observability page.
Storage policies
When you connect PolarDB, CloudMonitor automatically creates an SLS Logstore and a Prometheus instance to store the ingested data.
|
Data type |
Default storage location |
Notes |
|
Metrics |
Prometheus instance: RegionShare:{{workspaceName}}:{{regionId}} |
None |
|
Audit logs |
SLS Project: aliyun-product-data-{{userId}}-{{regionId}} SLS Logstore: polardb_audit_log |
None |
|
Error logs and slow query logs |
SLS Project: aliyun-product-data-{{userId}}-{{regionId}} SLS Logstore: polardb_log |
None |
Uninstall or modify an integration policy
To modify or delete an integration policy, go to the Integration Management page in the Integration Center. Find the relevant policy and click Edit or Delete.