This topic describes how to configure an alert rule for an AnalyticDB for PostgreSQL instance to monitor resource usage. If the conditions specified in an alert rule are met, the system notifies all contacts in the specified contact groups.
Background information
The monitoring and alerting feature of AnalyticDB for PostgreSQL is implemented by using CloudMonitor. CloudMonitor allows you to set metrics and specify contact groups. If an alert is triggered, CloudMonitor notifies all contacts in the specified contact groups. You can maintain contact groups for metrics to ensure that the contacts receive alerts at the earliest opportunity.
To enable the monitoring and alerting feature, you must configure alert rules.
View the monitoring data
Log on to the CloudMonitor console.
In the left-side navigation pane, click Cloud Service Monitoring.
On the Cloud Service Monitoring page, choose .
In the upper part of the page, select a region.
Find the AnalyticDB for PostgreSQL instance that you want to manage and click Monitoring Charts in the Actions column.
Different metrics are displayed in the CloudMonitor console for AnalyticDB for PostgreSQL instances in elastic storage mode, Serverless mode, and reserved storage mode. However, CloudMonitor does not show monitoring charts individually for each resource type. Two tabs are displayed: Instances in Elastic Storage Mode or Serverless Mode and Instances in Reserved Mode. You can view metrics for the specific resource type.
Create an alert rule
For information about how to create an alert rule, see Create an alert rule.
When you create an alert rule for an AnalyticDB for PostgreSQL instance in the CloudMonitor console, select AnalyticDB for PostgreSQL in the Product drop-down list.
When you create an alert rule, three types of metrics are available for AnalyticDB for PostgreSQL: obsolete metrics, instance-dimension metrics, and node-dimension metrics. Obsolete metrics are used for AnalyticDB for PostgreSQL instances in reserved storage mode that use the old host architecture.
Create an event-triggered alert rule
For information about how to create an event-triggered alert rule, see Manage system event-triggered alert rules.
When you create an event-triggered alert rule for an AnalyticDB for PostgreSQL instance in the CloudMonitor console, select AnalyticDB for PostgreSQL in the Product drop-down list.