This topic describes how to block an alert.
Background information
On the
After a blocking condition is created, the system starts to block alerts based on the condition. The blocking condition takes effect in 30s.
Prerequisites
Make sure that you have the following permissions:
-
Resource Permissions : Cluster Maintenance, Tenant Maintenance, OBProxy Maintenance, Arbitration Service Maintenance, Binlog Service Maintenance, or Host Maintenance permission -
Menu Permissions : Permission on theAll menu of theAlert Center
Procedure
Log on to the OceanBase Cloud Platform (OCP) console.
In the left-side navigation pane, choose
Alert Center .Click the
Alert Blocking tab.On the
Alert Blocking tab, clickCreate Blocking Condition .Configure the blocking condition in the
Create Blocking Condition dialog box.Field Configuration description Application The alert source. Options include OceanBase, OBProxy, OCP, OMS, and Logs. Masked Object Types The blocking scope. Valid values: All, Tenant, and Server. The options vary with the setting of Application. Blocking Object The alert objects that use the alert rule. You can select specific alert objects as needed.
If you select All, you can selectExcluded Objects on the right to exclude objects that do not need to be blocked.Mask Alert Rules Select one or more alert items to be blocked. Tag Specify one or more tags to block alerts for specific metrics, for example, slow SQL alerts. You can filter SQL statements by their IDs. You can add up to eight tags. Blocking End Time Specify the end time for the blocking condition. The blocked alerts will not be reported before the end time expires. This field is required. - Click the End Time field to select the end time.
- You can also click a time next to the End Time field. For example, if you click
6 Hours , the system enters the time six hours later from the current time to the End Time field.
Daily Block Period You can toggle on the Daily Block Period switch, and specify the start time and end time. The system blocks alerts during the specified period every day. Remarks Additional information about the blocking condition that helps you understand and reuse the blocking condition. If you want to block a specific alert, you can add a tag to exactly match the alert. The following example shows how to block a slow SQL alert for the meta2 tenant in the adminMT cluster.
(Optional) Add a tag named ob_cluster and set the tag value to the cluster name adminMT.
(Optional) Add a tag named ob_cluster_id and set the tag value to the cluster ID 15. The cluster ID is used to distinguish between primary and standby clusters.
(Optional) Add a tag named tenant_name and set the tag value to the tenant name meta2.
Add a tag named sql_id and set the tag value to the ID of the slow SQL statement.
Note
The system blocks an alert only when the alert matches all the tags. The optional configurations are intended to help you better understand and use tags. You can ignore these configurations in practice.

Click
OK .The system returns to the Blocking Conditions list, which contains the newly created condition.
By default, all alert blocking conditions are displayed in the masking list. You can filter blocking conditions by choosing
In Effect orExpired . By default, the alert blocking conditions created by the logged-on user are displayed.Note
After an alert blocking condition is created, it takes effect within 30s.