Connect PolarDB

Updated at:

Ingest PolarDB metrics and logs into CloudMonitor 2.0 to monitor your PolarDB clusters.

Prerequisites

Limits

  • If you use a RAM user for the integration, you must grant the AliyunCloudMonitorFullAccess system 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

Connecting PolarDB involves different fees for metrics and logs. Connecting only metrics does not incur database log delivery fees. If you connect logs, the following fees may apply depending on the features that you enable.

  • 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.

  • SQL log (SQL audit) fees: When you enable audit log collection for a PolarDB for MySQL cluster, SQL Explorer is automatically enabled for the cluster. SQL Explorer is billed based on the audit log storage that you use. For details, see PolarDB for MySQL billing items and DAS billing.

  • Log delivery service fees: Charged by DAS. The DAS log delivery service has changed from free to paid and will be gradually rolled out starting in November 2026. The billing start time, applicable products, and log types are subject to the DAS announcement. This fee covers delivery from the database to SLS. Data shipping from SLS to downstream services such as OSS is charged separately based on SLS billing rules. For more information, see DAS log delivery service commercialization.

  • SLS fees: 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

  1. Log on to the CloudMonitor 2.0 console and select the target workspace. In the navigation pane, click Integration Center, and then click PolarDB.

  2. Enter a new Policy name or select an existing one, and then select the Entity Scope.

  3. Select the observable data to ingest, and then click OK.

    Note

    Before you select observable data, review the billing information. Connecting only PolarDB metrics does not incur database log delivery fees. If you connect PolarDB logs, DAS SQL log (SQL audit) fees, DAS log delivery service fees, and SLS fees may apply.

    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.

  4. 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.

Editing or deleting an integration policy affects only the collection and storage configuration on the CloudMonitor 2.0 side. It does not automatically disable SQL Explorer that is enabled on the PolarDB side, nor does it automatically stop log delivery tasks that have been created. To stop the corresponding fees, take the following actions:

  • Stop log delivery service fees: Close the delivery task on the DAS log delivery page or at the corresponding CloudLens entry. After the task is closed, no more delivery service fees are incurred, and historical data that has been delivered is retained.

  • Stop SQL log (SQL audit) fees: Disable SQL Explorer in the PolarDB console. Disabling log collection does not automatically disable SQL Explorer. For more information, see Disable SQL Explorer and audit.

  • Handle historical SLS data: Data that has been written to SLS continues to incur storage and other fees based on SLS billing rules. Deleting an SLS Project or LogStore does not replace stopping DAS billing. For more information, see Stop billing.