Cloud Monitor centrally manages system events and custom events for your cloud products. You can set alert rules for these events to receive alert notifications when an anomaly occurs. This helps you quickly analyze and resolve issues.
Background
This legacy feature is no longer being updated and is being phased out. We recommend using the new event subscription feature. For information about how to create an event subscription, see Create an event subscription.
The following table describes the event types and cloud services supported by Cloud Monitor.
Event type | Description | Supported cloud services |
system event | Cloud Monitor provides a unified portal for querying system events from various cloud services, allowing you to monitor their operational status and receive alert notifications. | |
custom event | You can use the Cloud Monitor API to report custom events from your applications or services, allowing you to monitor their operational status and receive alert notifications for specific conditions. | All cloud services supported by Cloud Monitor. |
Create a custom event-triggered alert rule
Prerequisites: If you want an alert rule to apply to instances in a specific application group, you must first create the application group and add resources to it. For more information, see Create an application group and Add resources to an application group.
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose .
On the Custom Event page, click the Event-triggered Alert Rule tab.
Click Create Alert Rule.
In the Create/Modify Event Alert panel, set the parameters for the custom event-triggered alert rule.
Table 1. Parameters for custom event-triggered alert rules
Parameter
Description
Alert Rule Name
The name of the event-triggered alert rule.
Application Group
Alert notifications are sent only when a relevant event occurs on a resource within the specified application group.
Event Name
The name of the custom event.
Rule Description
A description of the event-triggered alert rule. The cumulative number of alerts that occur within a 1- to 5-minute period.
Notification Method
The notification method and level for the event alert. Valid values:
Email + Webhook (CRITICAL)
Email + Webhook (WARN)
Email + Webhook (INFO)
Contact Group
The alert contact group for the event-triggered alert rule.
Alert Callback
Set the webhook address and request method. Enter a URL that is accessible over the Internet. Cloud Monitor pushes alert information to this URL using POST or GET requests. Only the HTTP protocol is supported. For more information about how to set an alert callback, see Use a threshold-triggered alert callback.
To test connectivity to the callback URL:
-
Click Test, located directly to the right of the callback URL.
In the WebHook Test panel, check the HTTP status code and test result details to verify connectivity.
NoteYou can also set the Test Template Type: and Language:. Then click Test again to view updated test results.
-
Click Close.
Click OK.
Modify a custom event-triggered alert rule
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose .
On the Custom Event page, click the Event-triggered Alert Rule tab.
In the Operation column of the target alert rule, click Modify.
In the Create/Modify Event Alert panel, set the parameters for the custom event-triggered alert rule.
For more information about the parameters for a custom event-triggered alert rule, see Parameters for custom event-triggered alert rules.
Click OK.
Disable a custom event-triggered alert rule
By default, a newly created custom event-triggered alert rule is enabled, and its Enable Status is
. If you do not want to receive alert notifications for a custom event, you can disable its rule. Alert notifications automatically resume when you re-enable the rule.
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose .
On the Custom Event page, click the Event-triggered Alert Rule tab.
Disable the custom event-triggered alert rule.
Disable a single rule
In the Operation column of the target alert rule, click the
icon, and then click Disable.Click OK.
Disable rules in a batch
Select the check boxes for the alert rules that you want to disable, and then click Disable in the lower-left corner.
Click OK.
Enable a custom event-triggered alert rule
If the Enable Status of a custom event-triggered alert rule is
, you can enable the rule.
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose .
On the Custom Event page, click the Event-triggered Alert Rule tab.
Enable the custom event-triggered alert rule.
Can be enabled individually
In the Operation column of the target alert rule, click the
icon, and then click Enable.Click OK.
Enable rules in a batch
Select the check boxes for the alert rules that you want to enable, and then click Enable in the lower-left corner.
Click OK.
Delete a custom event-triggered alert rule
After you delete the alert rule for a custom event, you will no longer receive alert notifications for that event.
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose .
On the Custom Event page, click the Event-triggered Alert Rule tab.
Delete the custom event-triggered alert rule.
Deleting items individually
In the Operation column of the target alert rule, click the
icon, and then click Delete.Click OK.
Batch deletion
Select the check boxes for the alert rules that you want to delete, and then click Delete in the lower-left corner.
Click OK.