In OceanBase Cloud, you can create alert rules and specify alert targets for each rule.
Procedure
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Alerts.
On the Alert Management page, click the Alert Rule tab.
On the Alert Rules tab, click Create alert rule.
Configure the alert rule and click Create.
Rule configuration.
ParameterDescriptionRule Name The name of the alert rule. Alert Target Type Select Instance, Tenant, or Database Proxy. Available metrics depend on the target type. - Instance: Select the target BYOC instance.
- Tenant: Select the target BYOC instance and tenant.
- Database Proxy: Select the proxy cluster.
Alert Type Select the alert type: Metric or Event. Configuration Method Select Custom or Use template to configure the alert rule. - Custom: Add custom metrics as needed to configure the alert rule.
- Use Template: Use an existing template to quickly configure the alert rule. For information about how to create a trigger condition template, see Create a trigger condition template.
Alert Trigger Condition Select the operation mode for multiple metrics. You can choose Meet Any Condition or Meet All Conditions. Alert Metric Select the alert metric from the Alert Metric drop-down list. For details about the meaning of each metric, see Monitoring metrics for custom alerts.
Then, set the condition for the metric in the Comparative Relationship, Operator, and Threshold drop-down lists.Add Metric Click Add to add multiple metrics to the alert. The system will evaluate the operation results of multiple metrics based on the selected trigger condition. Alert Cycle Specify the alert detection cycle. The system periodically checks whether the alert meets the trigger conditions. The default detection cycle is 3 min. Alert Level Set the alert level. You can choose Info, Warning, or Critical. Alert Frequency The frequency at which the alert is triggered. You can choose alert only once or Repeat. Alert Description You can customize the alert description, which supports variable placeholders. For example: OB Data Disk Current Usage: ${values} (Current Threshold: ${values}).Alert Event Select a specific event to trigger the alert. Notification configuration.
ParameterDescriptionAlert Notification Method Configure notification methods for each alert level. The default for all levels is Email + Webhook.Alert Notification Content Configure a notification template for each channel. For more information, see Create an alert notification template. Alert Notification Recipient Type Select the alert notification recipient type: Alert Contact Groups or Alert Contact. Alert Notification Recipient You can select an alert contact group or an alert contact. For related configurations, see Alert contacts. Alert Notification Effective Time Alerts are triggered only during the configured effective time of the rule. Note
- The start and end times of the effective period refer to two points within the same day, and the start time must be earlier than the end time. For example, it can be from 8:00 to 18:00. Specifying a time range that crosses midnight (for example, 23:00 to 6:00 the next day) is not supported.
- The effective time only supports hourly time points; specifying by day or date, such as from March 1st to March 15th, is not supported.
- If the effective time is not specified, the alert rule takes effect throughout the day.
After the rule is created, you can view it in the rule list and manage it using the enable button and the actions column.