OceanBase Cloud Platform (OCP) provides built-in alert templates to meet your daily business monitoring requirements. This topic describes how to create a custom alert template to set alert rules for your business objects in a unified manner.
Compared with creating an alert rule, creating an alert template allows you to quickly set multiple alert rules for your business objects.
Prerequisites
The logged-on user in the OceanBase Cloud Platform (OCP) console is granted the ADMIN or ALARM_MANAGER role.
Procedure
Log on to the OCP console.
In the left-side navigation pane, click Alert Center.
Click the Alert Templates tab.
On the Alert Templates tab, move the pointer over Create Alert Template in the upper-right corner and select the template type.
Specify the fields in the Basic Information section for the alert template.
Specify Template Name, Description, and whether to Enable Template.

You can disable system built-in alert templates and custom alert templates that are temporarily not used.
Specify the fields in the Rule Configuration section for the alert rule.
Select an alert rule type.
Switch between the tabs of alert rule types as needed. The tab layout varies with the template type.
Template type Alert rule types OceanBase Database template - Cluster alerts
- Tenant alerts
- OBServer alerts
OBProxy template - OceanBase cluster alerts
- OBProxy cluster alerts
OCP template - Backup and restore alerts
- Service alerts
- Host alerts
Log template - OceanBase Database alerts
- OBProxy alerts
- Host alerts
Click Add Rule. In the dialog box that appears, select the rules that you want to add.

Specify Trigger Condition and Alert Cycle for the alert rules.
Click Add Rule in the Rules list to set multiple alert rules for an alert object.
For more information about how to set the alert rules, see Create an alert rule.
Click Submit.
On the submission result page, click Return to Templates List or Set Alert Object.