CloudMonitor integrates the operations and maintenance (O&M) events and resource scaling plans for your AnalyticDB for MySQL Data Warehouse Edition clusters. You can create event-triggered alert rules to receive notifications by text message, email, or alert callback. This helps you promptly identify, analyze, and resolve issues, and establish an automated O&M workflow.
Supported events
-
Instance:SystemMaintenance.Elastic:Delay
-
Instance:SystemMaintenance.Elastic:Failed
-
Instance:SystemMaintenance.MinorVersionUpgrade:Canceled
-
Instance:SystemMaintenance.MinorVersionUpgrade:Executed
-
Instance:SystemMaintenance.MinorVersionUpgrade:Executing
-
Instance:SystemMaintenance.MinorVersionUpgrade:Scheduled
Procedure
-
Log on to the CloudMonitor console. In the left-side navigation pane, choose Event Center > System Events.
-
On the Event Monitoring tab, click Save as Alert Rule.
-
In the Create/Modify Event-triggered Alert Rule panel, configure the parameters for the system event alert rule as shown in the following table. For information about other parameters, see Create a system event alert rule.
Parameter
Description
Alert Rule Name
The name of the event-triggered alert rule.
Product Type
Select Analyticdb for mysql 3.0.
event types
The only supported option is Maintenance.
Event Level
The only supported option is Warning.
Event Name
Select the event that triggers alerts.
NoteWe recommend that you select the Instance:SystemMaintenance.MinorVersionUpgrade:Scheduled event. This way, an alert is sent before a cluster upgrade task is executed. After you receive the notification, you can configure the upgrade time or cancel the upgrade. For more information, see Configure a maintenance window and Cancel a scheduled task.
Keyword Filtering
Specifies keywords to filter events. The following options are available:
-
Contains any of the keywords: An alert is sent if the event content includes any of the specified keywords.
-
Does not contain any of the keywords: An alert is sent if the event content does not include any of the specified keywords.
SQLFilter
The SQL filter expression. You can use the
andandoroperators for conditional filtering. For example,Warn and MinorVersionUpgradeindicates that an alert is triggered only when the event content includes "MinorVersionUpgrade" and the alert level is "Warn".Resource Range
Select All Resources.
Notification Method
Select a Notification Method from the following options:
-
Alert Notification
Cloud Monitor sends alert notifications to a specified alert contact group. You must configure the following parameters:
Contact group: The alert contact group that receives notifications.
Notification method: The methods used to send notifications based on the alert level. Valid values:
Critical (Email + webhook)
Warning (Email + webhook)
Info (Email + webhook)
-
SMQ
Sends alerts to a specified SMQ queue.
-
Function Compute
Alert notifications are sent to a specified function in Function Compute.
-
URL Callback
A publicly accessible URL that receives alert information from Cloud Monitor through POST or GET requests. Only the HTTP protocol is supported. For more information about how to configure an alert callback, see Use alert callbacks for system events (legacy).
To test connectivity to the callback URL:
-
Click Test, located directly to the right of the callback URL.
In the WebHook Test panel, check the HTTP status code and test result details to verify connectivity.
NoteYou can also set the Test Template Type: and Language:. Then click Test again to view updated test results.
-
Click Close.
-
-
Simple Log Service
Alert notifications are sent to a specified Logstore in Simple Log Service.
Mute Period
The cool-down period before resending a notification for the same alert.
-
-
Click OK.