Integrate Alibaba Cloud ApsaraDB RDS

Updated at:

Integrate metrics and logs from ApsaraDB RDS into CloudMonitor 2.0 to observe your RDS instances.

Prerequisites

Limitations

  • If you use a RAM user for the integration, you must grant the AliyunCloudMonitorFullAccess system policy and the AliyunLogArchiveRole role to the RAM user.

  • See MySQL Feature Overview, PostgreSQL Feature Overview, and SQL Server Feature Overview for the ApsaraDB RDS instance types that support the SQL Audit feature.

  • Error logs and slow query logs are supported only for MySQL and PostgreSQL instances.

  • If you stop collecting ApsaraDB RDS audit logs, you must manually disable SQL Explorer and Audit in the ApsaraDB RDS console.

Billing

Integrating ApsaraDB RDS involves different fees for metrics and logs. Integrating only metrics does not incur database log delivery fees. If you integrate logs, the following fees may apply depending on the features that you enable.

  • Metric integration incurs fees for real-time export from Hybrid Cloud Monitoring and Managed Service for Prometheus. Second-level metric integration also incurs fees for second-level monitoring in Hybrid Cloud Monitoring.

  • SQL log (SQL audit) fees: Charged by Database Autonomy Service (DAS). After you enable SQL Audit (PostgreSQL and SQL Server) or SQL Explorer (MySQL), fees are charged based on DAS billing rules. For more information, see RDS 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. For more information, see DAS log delivery service commercialization.

  • SLS fees: Simple Log Service (SLS) charges apply for storage, read traffic, requests, data processing, and data shipping of collected ApsaraDB RDS logs. For more information, see Pay-as-you-go. These are SLS data shipping fees and are different from DAS log delivery service fees.

Procedure

  1. Log on to the CloudMonitor 2.0 console. Select a workspace, and in the navigation pane, click Integration Center. Then, click ApsaraDB RDS.

  2. Create or select a Policy name and select an Entity Scope.

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

    Note

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

    Observable data

    Configuration

    ApsaraDB RDS metrics

    • Tag key: Specify instance tag keys to add to the metrics. The key-value pairs are automatically added as metric labels.

    • Second-level monitoring: Integrates second-level metrics from the cloud service. Enabled by default.

  4. After the integration, you can view entities and their observable data on the Entity Explorer or Database Observability page.

Storage policy

CloudMonitor automatically creates an SLS LogStore and a Prometheus instance to store the integrated data.

Type

Default storage location

Notes

Metrics

Prometheus instance: RegionShare:{{workspaceName}}:{{regionId}}

None

Audit logs

SLS Project: aliyun-product-data-{{userId}}-{{regionId}}

SLS LogStore: rds_audit_log

None

Error and slow query logs

SLS Project: aliyun-product-data-{{userId}}-{{regionId}}

SLS LogStore: slow_error_log

None

Modify or delete an integration policy

To modify or delete an integration policy, go to the Integration Management page in the Integration Center. Find the policy, and then 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 Audit or SQL Explorer that is enabled on the database 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 Audit or SQL Explorer in the ApsaraDB RDS console. Disabling log collection does not automatically disable SQL Audit or SQL Explorer.

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