All Products
Search
Document Center

AnalyticDB:Configure an event-triggered alert rule

Last Updated:Nov 18, 2024

The O&M events and resource scaling plans of AnalyticDB for MySQL clusters are integrated into the CloudMonitor console. You can configure alert rules for system events, send notifications to contacts by text message and email, and configure alert callbacks. This helps you receive notifications at the earliest opportunity and quickly identify and resolve issues to implement automatic O&M. This topic describes how to configure an event-triggered alert rule.

Supported events

  • Resource scaling plan delay

  • Resource scaling plan failure

  • Minor version update (canceled)

  • Minor version update (completed)

  • Minor version update (executing)

  • Minor version update (scheduled)

Procedure

  1. Log on to the CloudMonitor console. In the left-side navigation pane, choose Event Center > System Event.

  2. On the Event Monitoring tab, click Save as Alert Rule.

  3. In the Create/Modify Event-triggered Alert Rule panel, configure the parameters that are described in the following table. For information about other parameters, see Create a system event-triggered alert rule.

    Parameter

    Description

    Alert Rule Name

    The name of the event-triggered alert rule.

    Product Type

    The product type of the cluster. Select Analyticdb for mysql 3.0.

    Event Type

    The type of the event. Select Maintenance.

    Event Level

    The level of the event. Select WARN.

    Event Name

    The name of the event.

    Note

    We recommend that you select Instance:SystemMaintenance.MinorVersionUpgrade:Scheduled. Before a minor version update job is executed, the system sends an alert notification. After you receive the alert notification, you can configure an update time or cancel the update. For more information, see the "Configure a global schedule" and "Cancel scheduled events" sections of the Manage O&M events topic.

    Keyword Filtering

    The keywords that are used to filter the alert rule. Valid values:

    • Contains any of the keywords: If the alert rule contains one of the specified keywords, the system sends an alert notification.

    • Does not contain any of the keywords: If the alert rule contains none of the specified keywords, the system sends an alert notification.

    SQLFilter

    The SQL statement that is used to filter the alert rule. The AND and OR operators are supported. For example, Warn and MinorVersionUpgrade specifies that the system sends an alert notification when the event involves a minor version update and the WARN event level.

    Resource Range

    The resource range. Select All Resources.

    Notification Method

    The notification method. Valid values:

    • Alert Notification

      CloudMonitor directly sends notifications of event-triggered alerts to the specified alert contact group. You must configure the following parameters:

      • Alert Contact Group: The alert contact group to which the notifications of event-triggered alerts are sent.

      • Notification Method: The severity level of event-triggered alerts and the corresponding notification methods. Valid values:

        • Critical (Email + Webhook)

        • Warning (Email +Webhook)

        • Info (Email +Webhook)

    • SMQ

      The Message Service (MNS) queue to which event-triggered alerts are delivered.

    • Function Compute

      The Function Compute function to which event-triggered alerts are delivered.

    • URL Callback

      The callback URL that can be accessed over the Internet. CloudMonitor sends POST or GET requests to push alert notifications to the specified URL. You can enter only an HTTP URL. For more information about how to configure alert callbacks, see Configure callbacks for system event-triggered alerts (old).

      To test the connectivity of an alert callback URL, perform the following steps:

      1. Click Test next to the callback URL.

        In the Webhook Test panel, you can check and troubleshoot the connectivity of the alert callback URL based on the returned status code and test result details.

        Note

        To obtain the details of the test result, configure the Test Template Type and Language parameters and click Test.

      2. Click Close.

    • Simple Log Service

      The Simple Log Service Logstore to which event-triggered alerts are delivered.

    Mute For

    The time interval for sending notifications.

  4. Click OK.