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
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 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 toEnable 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 andAlert 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 orSet Alert Object .