Cloud Monitor allows you to centrally manage system events and custom events from your cloud services. You can create alert rules for these system events to receive timely alert notifications, helping you quickly analyze and resolve them.
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 system event alert rule
Prerequisites: If you want an alert rule to apply to instances within a specific application group, ensure you have created the group and added the required 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 navigation pane on the left, choose .
On the Event Monitoring tab, click Save as alert rule.
In the Create/modify event alert panel, configure the parameters for the system event alert rule.
Table 1. Parameters for a system event alert rule
Section
Parameter
Description
Basic information
Rule name
The name of the event alert rule.
Event alert rule
Product
The cloud service that the alert rule applies to. For a list of supported cloud services, see System events for cloud services.
Event type
The event type that triggers the alert. For the event types supported by each cloud service, see System events for cloud services.
Event Level
The event level that triggers the alert. For the event levels supported by each cloud service, see System events for cloud services.
Event name
The event name that triggers the alert. For the event names supported by each cloud service, see System events for cloud services.
Keyword filtering
The keywords used to filter events based on their content. Valid options:
Contains any of the keywords: An alert notification is sent if the event content contains any of the specified keywords.
Does not contain any of the keywords: An alert notification is sent if the event content does not contain any of the specified keywords.
NoteTo learn how to view event content, see View system events.
SQL filter
The SQL expression used to filter events.
You can use
andandoroperators. For example, if you enterWarn and i-hp368focau7dp0hw****, an alert is triggered only when the event content contains both the instance IDi-hp368focau7dp0hw****and the alert levelWarn.Resource range
The scope of resources to which the alert rule applies. Valid values:
All resources: The rule applies to all resources of the selected cloud service.
Application group: The rule applies to the resources in a specific application group that you select.
Notification method
NoteYou must select at least one notification method.
Alert notification
Cloud Monitor sends alert notifications to a specified alert contact group. You must configure the following parameters:
Contact group: The alert contact group that receives notifications.
Notification method: The methods used to send notifications based on the alert level. Valid values:
Critical (Email + webhook)
Warning (Email + webhook)
Info (Email + webhook)
Simple Message Queue (SMQ)
Alert notifications are sent to a specified queue in SMQ.
Function Compute
Alert notifications are sent to a specified function in Function Compute.
URL callback
A publicly accessible URL that receives alert information from Cloud Monitor through POST or GET requests. Only the HTTP protocol is supported. For more information about how to configure an alert callback, see Use alert callbacks for system events (legacy).
To test connectivity to your alert callback URL, do the following.
Click Test, located directly to the right of the callback URL.
In the WebHook Test panel, use the HTTP status code and test result details to verify and troubleshoot connectivity to your alert callback URL.
NoteYou can also set the Test Template Type: and Language:. Then click Test again to view updated test results.
Click Close.
Simple Log Service
Alert notifications are sent to a specified Logstore in Simple Log Service.
Mute for
The period to wait before resending a notification for an unresolved alert. Valid values: 5 Minutes, 15 Minutes, 30 Minutes, 60 Minutes, 3 Hours, 6 Hours, 12 Hours, and 24 Hours.
Cloud Monitor sends an alert notification when a metric reaches its threshold. During the mute period, Cloud Monitor does not send more notifications for the same alert. If the metric has not returned to normal after the mute period ends, Cloud Monitor sends another 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.
Debug a system event alert rule
After you create a system event alert rule, you can use the debug feature to verify that notifications are sent correctly to your configured endpoints, such as a Simple Message Queue (SMQ) queue, a Function Compute function, a URL callback, or a Simple Log Service Logstore.
Limits: You can debug only alert rules for system events associated with a specific cloud service and event name.
-
Log on to the Cloud Monitor console.
In the navigation pane on the left, choose .
On the Event Monitoring tab, click Old event alert rules in the upper-right corner.
Find the alert rule that you want to debug, click the
icon in the Actions column, and then click Debug.In the Create event debugging panel, select the event that you want to debug.
In the Content (JSON format) area, the event content is displayed. You can modify information such as the instance ID to match your test environment.
Click OK.
Cloud Monitor automatically sends a test alert notification to the alert contacts.
Modify a system event alert rule
-
Log on to the Cloud Monitor console.
In the navigation pane on the left, choose .
On the Event Monitoring tab, click Old event alert rules in the upper-right corner.
Find the target alert rule and click Modify in the Actions column.
In the Create/modify event alert panel, modify the parameters for the alert rule.
For more information about the parameters, see Parameters for a system event alert rule.
Click OK.
Disable a system event alert rule
The Status of a new system event alert rule is Enabled by default. You can disable a rule to temporarily stop receiving its alert notifications. Alert notifications are automatically resumed after you enable the rule again.
-
Log on to the Cloud Monitor console.
In the navigation pane on the left, choose .
On the Event Monitoring tab, click Old event alert rules in the upper-right corner.
Disable one or more alert rules.
To disable a single rule:
Find the rule and click Disable in the Actions column.
Click OK.
To disable multiple rules:
Select the target alert rules, and then click Disable in the lower-left corner.
Click OK.
Enable a system event alert rule
You can enable an alert rule whose Status is Disabled.
-
Log on to the Cloud Monitor console.
In the navigation pane on the left, choose .
On the Event Monitoring tab, click Old event alert rules in the upper-right corner.
Enable one or more alert rules.
To enable a single rule:
Find the rule and click Enable in the Actions column.
Click OK.
To enable multiple rules:
Select the target alert rules, and then click Enable in the lower-left corner.
Click OK.
Delete a system event alert rule
After you delete an alert rule for a system event, you will no longer receive alert notifications for that event.
-
Log on to the Cloud Monitor console.
In the navigation pane on the left, choose .
On the Event Monitoring tab, click Old event alert rules in the upper-right corner.
Delete one or more alert rules.
To delete a single rule:
Find the rule and click Delete in the Actions column.
Click OK.
To delete multiple rules:
Select the target alert rules, and then click Delete in the lower-left corner.
Click OK.