You can create CloudMonitor alert rules to monitor the Object Storage Service (OSS) resources. When resource metrics meet specific alert conditions, alerts are triggered and CloudMonitor sends alert notifications. This way, you can handle the monitoring data exceptions at the earliest opportunity.
Create an alert rule
Log on to the Cloud Monitor console.
In the left-side navigation pane, choose Alerts > Alert Rules.
On the Alert Rules page, click Create Alert Rule.
In the Create Alert Rule panel, configure the parameters described in the following table.
Parameter
Description
Product
The name of the Alibaba Cloud service that you want to monitor by using CloudMonitor. Select Object Storage Service.
Resource Range
The range of the resources to which the alert rule is applied. Valid values:
All Resources: The alert rule applies to all OSS resources.
Application Groups: The alert rule applies to all resources in a specific application group of OSS.
Instances: The alert rule applies to specific OSS resources.
Rule Description
Click Add Rule, specify the rule name, metric type, metric, threshold, and alert level.
Mute Period
The interval at which CloudMonitor resends alert notifications before an alert is cleared. Valid values: 5 Minutes, 15 Minutes, 30 Minutes, 60 Minutes, 3 Hours, 6 Hours, 12 Hours, and 24 Hours.
An alert is triggered when the conditions of an alert rule are met. During the mute period, alert notifications will not be resent . If the alert is not cleared after the mute period elapses, alert notifications will be resent.
Effective Period
The period of time during which the alert rule is effective.
Alert Contact Group
The alert contact group to which alert notifications are sent.
For more information about how to create an alert contact and an alert contact group, see Create an alert contact or alert contact group.
Tag
Specify tags for the alert rule. A tag consists of a tag name and a tag value.
Alert Callback
The callback URL that can be accessed over the Internet. CloudMonitor sends HTTP POST requests to push alert notifications to the specified URL. Only the HTTP protocol is supported. For more information about how to configure an alert callback, see Use the alert callback feature to send notifications about threshold-triggered alerts.
Auto Scaling
If you turn on Auto Scaling, the specified scaling rule is enabled when an alert is triggered based on the alert rule. For more information, see Manage scaling groups and Configure scaling rules.
Simple Log Service
If you turn on Log Service, an alert triggered based on the alert rule is sent to the specified Logstore.
Simple Message Queue (formerly MNS) - Topic
If you turn on Simple Message Queue (formerly MNS) - Topic, an alert triggered based on the alert rule is written to the specified topic in Message Service (MNS). If you turn on Message Service - topic, you must specify the Region and topicName parameters.
For information about how to create a topic, see Create a topic.
Function Compute
If you turn on Function Compute, an alert triggered based on the alert rule is sent to function compute for format processing. If you turn on Function Compute, you must specify Region, Service and Function
Method to handle alerts when no monitoring data is found
Specify the method that is used to handle alerts if no monitoring data exists. Valid values:
Do not do anything (default)
Send alert notifications
Treated as normal
Click Confirm.
Manage alert rules
You can perform the following operations on alert rules:
Operation | Description |
Modify the alert rule that cannot meet your metric monitoring requirements. | |
Disable the alert rules for maintenance or upgrade to prevent unnecessary alert notifications. | |
Re-enable the associated alert rules after you complete the maintenance or upgrade. | |
Delete the alert rules that are no longer needed, please delete the relative alert rules manually. Important If you delete a bucket, the alert rules that are associated with the bucket are not deleted. You must manually delete the alert rules that you do not want to retain. | |
View the alert history and resources that triggered alerts of a specific alert rule | |
Use the alert callback feature to send notifications about threshold-triggered alerts | Use the alert callback feature to integrate alert notifications into O&M systems or message notification systems. |
If an alert rule is triggered for multiple resources of the same Alibaba Cloud account within a specific cycle, CloudMonitor sends the first alert notification and merges subsequent alert notifications to reduce redundant information. |