Initiative alert
CloudMonitor provides the initiative alert feature for AnalyticDB for PostgreSQL. This feature lets you quickly configure a default set of alert rules for your AnalyticDB for PostgreSQL instances. When a metric's value meets a rule's condition, the system notifies the specified alert contacts, helping you address exceptions promptly.
Overview
With CloudMonitor, you can set alert rules for various metrics. When a rule is triggered, CloudMonitor sends email notifications to the specified alert contact group. This ensures that the right people are notified immediately.
Enable initiative alerts
After you enable initiative alerts, CloudMonitor automatically monitors all AnalyticDB for PostgreSQL instances under your Alibaba Cloud account. This helps you quickly establish a baseline alerting system to stay informed of any critical metric anomalies.
- Log on to the AnalyticDB for PostgreSQL console.
- In the upper-left corner of the console, select a region.
- Find the instance that you want to manage and click the instance ID.
-
In the upper-right corner, click CloudMonitor to open the CloudMonitor console for the instance.
-
In the left-side navigation pane of the CloudMonitor console, choose . Find AnalyticDB for PostgreSQL and turn on the switch.
After you enable initiative alerts, the system automatically creates alert rules for the following metrics.
|
Rule name |
Metric |
Period (minutes) |
Alert rule |
|
SystemDefault_acs_hybriddb_adbpg_query_blocked |
(instance-level) Number of blocked queries |
30 |
An Info-level alert is triggered if the average value is greater than 0 for 30 consecutive statistical periods. |
|
SystemDefault_acs_hybriddb_adbpg_query_queued |
(instance-level) Number of queued queries |
15 |
An Info-level alert is triggered if the average value is greater than 0 for 15 consecutive statistical periods. |
|
SystemDefault_acs_hybriddb_adbpg_instance_disk_usage_percent |
(instance-level) Instance disk utilization |
5 |
An Info-level alert is triggered if the average value is greater than 80% for 5 consecutive statistical periods. |
|
SystemDefault_acs_hybriddb_node_disk_iops_percent |
(Node-level) Node I/O utilization |
5 |
An Info-level alert is triggered if the average value is greater than 90% for 5 consecutive statistical periods. |
|
SystemDefault_acs_hybriddb_adbpg_master_conn_percent |
(Node-level) master node connection utilization |
5 |
An Info-level alert is triggered if the average value is greater than 90% for 5 consecutive statistical periods. |
|
SystemDefault_acs_hybriddb_node_mem_used_percent |
(Node-level) Node memory utilization |
5 |
An Info-level alert is triggered if the average value is greater than 85% for 5 consecutive statistical periods. |
|
SystemDefault_acs_hybriddb_node_cpu_used_percent |
(Node-level) Node CPU utilization |
15 |
An Info-level alert is triggered if the average value is greater than 95% for 15 consecutive statistical periods. |
By default, initiative alerts use the Info severity level and send email notifications. You can modify the severity level for each alert rule on the Alert Rules page in the CloudMonitor console.
Modify alert contacts
If you do not specify an alert contact after enabling initiative alerts, CloudMonitor sends notifications to your Alibaba Cloud account owner by default. You can change the alert contacts.
-
Log on to the CloudMonitor console.
-
In the left-side navigation pane, choose .
-
On the Alert Contacts tab, find the target alert contact and click Edit in the Actions column.
-
In the Set Alert Contact panel, update the mobile number, email address, or webhook URL. Keep the default value Automatic for Language of Alert Notifications.
-
After you verify the information, click OK.
Create a custom alert rule
In addition to initiative alerts, AnalyticDB for PostgreSQL also lets you create custom alert rules for specific monitoring needs.
-
Log on to the CloudMonitor console.
-
In the left-side navigation pane, choose .
-
On the Alert Rules page, click Create Alert Rule.
-
In the Create Alert Rule panel, select AnalyticDB for PostgreSQL from the product list, and then click Add Rule.
-
In the Configure Rule Description panel, configure the metric parameters.