This topic describes how to add an alert rule.
Procedure
Go to the Cluster Instance Workspace page of the ApsaraDB for OceanBase console. In the left-side navigation pane, click Monitoring.
In the upper-right corner of the page that appears, click Add Alert Rule.
Specify associated resources.
Product: OceanBase Cluster is selected by default.
Resource Range: Select All Resources or Cluster.
If you select All Resources, the system sends alert notifications if any metric of any instance of the OceanBase cluster reaches the specified threshold.
If you select Cluster and specify an instance, the system sends alert notifications only when a metric of the instance reaches the specified threshold. To create an alert rule for a group, go to the group resource page.
Set the alert rule.
Enter a rule name. Make sure that it is different from the names of existing rules.
Specify the rule information, such as the description, cycle, duration, average value, and threshold.
You can click Add Alert Rule to add more rules.
Specify the value of Mute For by selecting from the drop-down list. It specifies the interval for sending alert notifications before the alert is cleared.
Specify the validity period by selecting the start time and end time from the drop-down lists.
Select a notification method.
Select recipients.
Select existing contacts.
Create a contact group.
Specify the alert notification method, specify whether to enable auto scaling and the log service, and then add email remarks.
Set Alert Callback to a URL accessible over the Internet. CloudMonitor pushes alert information to the URL through POST requests.
Click OK.