All Products
Search
Document Center

PolarDB:Create an alert rule

Last Updated:Mar 28, 2026

Set up threshold-based alert rules in the PolarDB for MySQL console to detect and respond to exceptions in your clusters, PolarProxy, and compute nodes.

Prerequisites

Before you begin, ensure that you have:

Create an alert rule

  1. Log on to the PolarDB console.

  2. In the upper-left corner, select the region where your cluster is deployed.

  3. Find the cluster and click the cluster ID.

  4. In the left-side navigation pane, choose Performance Monitoring.

  5. Click Add Alert Rule.

  6. On the Create Alert Rule page, configure the following parameters.

    ParameterDescription
    ProductThe service to monitor. Use the default value PolarDB for MySQL (New).
    Resource RangeThe scope of resources the rule applies to. Valid values: All Resources (any cluster that meets the rule conditions), Application Groups (clusters in the specified application groups), Instances (a specific cluster).
    Rule DescriptionThe alert condition. Click Add Rule, then in the Add Rule Description panel specify the rule name, metric type, metric, threshold, and alert level, and click Next Step. For more information, see Create a threshold-triggered alert rule.
    Mute ForHow long to wait before resending an alert notification if the issue persists. Range: 5 minutes to 24 hours.
    Effective PeriodThe time window during which the alert rule is active. CloudMonitor sends notifications only within this period and records events when the validity period expires.
    Alert Contact GroupThe contact group that receives alert notifications. A group can contain one or more contacts.
    TagOptional tags for the alert rule. Each tag consists of a key and a value.
    Method to handle alerts when no monitoring data is foundHow to handle the alert when monitoring data is unavailable. Valid values: Do not do anything (default), Send alert notifications, Treated as normal.
  7. (Optional) Expand Advanced Settings to configure additional notification and automation options.

    Advanced settingDescription
    Alert CallbackA public HTTP URL that CloudMonitor calls with an HTTP POST request when an alert fires. Only HTTP URLs are supported. To verify connectivity, click Test next to the URL, configure Template Type and Language in the WebHook test panel, then click Test. Click Close when done.
    Auto ScalingWhen turned on, triggers the specified scaling rule when an alert fires. Requires Region, ESS Group, and ESS Rule. For setup, see Manage scaling groups and Manage scaling rules.
    Log ServiceWhen turned on, writes alert details to a Logstore in Log Service when an alert fires. Requires Region, ProjectName, and Logstore. To create a project and Logstore, see Getting started.
    Message Service - TopicWhen turned on, writes alert details to a topic in Simple Message Queue (formerly MNS) when an alert fires. Requires Region and topicName. To create a topic, see Create a topic.
  8. Click OK.

What's next

To view and manage existing alert rules, go to Performance Monitoring in the left-side navigation pane.