This topic describes how to add a system event rule. You can use system event rules to monitor the status of your cloud products and receive alert notifications. This helps you quickly analyze and locate problems when a service failure occurs.
Procedure
Log on to the Cloud Monitor console.
In the navigation pane on the left, choose Event Center > System Events.
Click the Event-triggered Alert Rules tab.
Click Create Alert Rule.
In the Create/Modify Event Alert pane, set the parameters for the system event alert rule.
Parameter
Description
Alert Rule Name
The name of the event-triggered alert rule.
Product Type
Select OceanBase Database.
Event Type
Select Status Notification.
Event Level
Select Critical.
Event Name
The following events are available. You can select more than one event:
Insufficient disk space for OceanBase instance
Keyword Filter
The keywords used to filter alert rules. Valid values:
Contains any of the keywords: Cloud Monitor sends an alert notification if the event content contains any of the specified keywords.
Does not contain any of the keywords: Cloud Monitor sends an alert notification if the event content does not contain any of the specified keywords.
NoteFor more information about how to view event content, see View system events.
SQL Filter
The SQL filter statement.
You can use the
andandoroperators for filtering. For example,Warn and i-hp368focau7dp0hw****indicates that Cloud Monitor sends an alert notification only if the event content contains the instancei-hp368focau7dp0hw****and the alert level isWarn.Contact Group
The alert contact group for the event-triggered alert rule.
Notification Method
The level and notification method for the event alert. Valid values:
Critical (Phone call + Text message + Email + WebHook)
Warning (Text message + Email + WebHook)
Info (Email + WebHook)
Resource Scope
All Resources
Application Group: Monitors and sends notifications for resources in the selected group.
Message Service Queue
Delivers event alerts to the specified queue in Simple Message Queue (formerly MNS).
Function Compute
Delivers event alerts to the specified function in Function Compute.
URL Callback
A public URL that can be used to receive alert information pushed by Cloud Monitor through POST requests. Only the HTTP protocol is supported. For more information about how to set an alert callback, see Use the alert callback feature for system events (Old version).
To test the connectivity of the webhook address, perform the following steps.
Click Test next to the webhook address.
In the Webhook Test pane, you can check the connectivity of the webhook address based on the returned status code and test result details.
NoteYou can also set the Template Type and Language for the webhook, and then click Test again to view the corresponding test result details.
Click Close.
Simple Log Service
Delivers event alerts to the specified Logstore in Simple Log Service.
Mute Period
The interval at which an alert notification is resent if the alert is not resolved. Valid values: 5 minutes, 15 minutes, 30 minutes, 60 minutes, 3 hours, 6 hours, 12 hours, and 24 hours.
When a metric reaches its alert threshold, an alert is triggered. If the metric value continues to exceed the threshold during the mute period, no more alerts are sent. If the alert is not resolved after the mute period, Cloud Monitor sends another alert notification.
For example, if you set Mute For to 12 hours, Cloud Monitor resends the alert notification after 12 hours if the alert is not resolved.
Click OK to create the system event rule.