AnalyticDB for MySQL cluster O&M events and resource scaling plans are integrated into CloudMonitor. Configure event-triggered alert rules to receive notifications by email or webhook when cluster events occur — enabling faster detection and response to maintenance events before they affect your workloads.
Supported events
CloudMonitor can trigger alerts on the following AnalyticDB for MySQL events:
| Event | Trigger condition |
|---|---|
| Resource scaling plan delay | A resource scaling plan execution is delayed beyond the scheduled time. |
| Resource scaling plan failure | A resource scaling plan fails to execute. |
| Minor version update (scheduled) | A minor version update is scheduled and not yet started. |
| Minor version update (executing) | A minor version update is in progress. |
| Minor version update (completed) | A minor version update completes successfully. |
| Minor version update (canceled) | A scheduled minor version update is canceled. |
Subscribe to Minor version update (scheduled) to receive advance notification before an update starts. This gives you time to configure a maintenance window or cancel the update before it runs.
Prerequisites
Before you begin, ensure that you have:
-
An AnalyticDB for MySQL cluster
-
Access to the
Create an event-triggered alert rule
-
Log on to the CloudMonitor console. In the left-side navigation pane, choose Event Center > System Event.
-
On the Event Monitoring tab, click Save as Alert Rule.
-
In the Create/Modify Event-triggered Alert Rule panel, configure the parameters described in the following table. For other parameters, see Create a system event-triggered alert rule.
For Event Name, select Instance:SystemMaintenance.MinorVersionUpgrade:Scheduled. CloudMonitor sends a notification before the minor version update starts, giving you time to configure a maintenance window or cancel the update. For details, see Configure a global schedule or Cancel scheduled events.
Parameter Description Alert Rule Name The name of the alert rule. Product Type Select Analyticdb for mysql 3.0. Event Type Select Maintenance. Event Level Select WARN. Event Name The event to monitor. See the recommendation below. Keyword Filtering Filter alerts by keyword. Contains any of the keywords: sends an alert if the event contains any specified keyword. Does not contain any of the keywords: sends an alert if the event contains none of the specified keywords. SQLFilter An SQL statement to filter events. Supports ANDandORoperators. For example,Warn and MinorVersionUpgradematches events at the WARN level that involve a minor version update.Resource Range Select All Resources to monitor all cluster resources in your account. Notification Method The delivery channel for alert notifications. See Notification methods for details. Mute For The minimum interval between notifications for the same alert. -
Click OK.
Notification methods
CloudMonitor supports the following delivery channels. Choose the one that fits your workflow.
| Method | Description |
|---|---|
| Alert Notification | CloudMonitor sends notifications directly to an alert contact group. Configure an Alert Contact Group and select a severity level: Critical (Email + Webhook), Warning (Email + Webhook), or Info (Email + Webhook). |
| SMQ | Delivers alerts to a Message Service (MNS) queue for downstream processing. |
| Function Compute | Invokes a Function Compute function when an alert fires, enabling custom automation. |
| URL Callback | Sends POST or GET requests to a callback URL accessible over the Internet. Only HTTP URLs are supported. For setup details, see Configure callbacks for system event-triggered alerts (old). |
| Simple Log Service | Delivers alerts to a Simple Log Service Logstore for log analysis and archiving. |
Test a callback URL
To verify that your callback URL is reachable before saving the rule:
-
Click Test next to the callback URL field. In the Webhook Test panel, review the returned status code and result details to confirm connectivity.
To obtain more detailed test results, configure the Test Template Type and Language parameters, then click Test.
-
Click Close.
What's next
After the alert rule is active, check the CloudMonitor console to confirm that notifications arrive as expected. To manage the maintenance schedule after receiving a notification, see Manage O&M events.