Create CloudMonitor alert rules to monitor your OSS resources. When a metric crosses a threshold you define, CloudMonitor triggers an alert and sends notifications—so you can respond to anomalies before they affect your users.
Prerequisites
Before you begin, ensure that you have:
An OSS bucket to monitor
At least one alert contact group configured in CloudMonitor. For instructions, see Create an alert contact or alert contact group
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. Integrations (optional)
Target resource
Parameter Description Product The Alibaba Cloud service to monitor. Select Object Storage Service. Resource Range The scope of resources the rule applies to. Valid values: All Resources, Application Groups, Instances. Alert condition
Parameter Description Rule Description Click Add Rule, then specify the rule name, metric type, metric, threshold, and alert level. Mute period The interval at which CloudMonitor resends an alert notification if the alert is not cleared. During the mute period, alert notifications will not be resent. Valid values: 5 Minutes, 15 Minutes, 30 Minutes, 60 Minutes, 3 Hours, 6 Hours, 12 Hours, 24 Hours. Effective period The time window during which the alert rule is active. Method to handle alerts when no monitoring data is found How to treat the alert state when some data points are missing—for example, when a bucket has no traffic. Valid values: Do not do anything (default), Send alert notifications, Treated as normal. Notifications
Parameter Description Alert Contact Group The contact group that receives alert notifications. Tag Tags to organize this alert rule. A tag consists of a tag name and a tag value. Alert Callback A publicly accessible URL. CloudMonitor sends an HTTP POST request to this URL when an alert is triggered. Only HTTP is supported. For details, see Use the alert callback feature to send notifications about threshold-triggered alerts. Parameter Description Auto Scaling When enabled, triggers the specified scaling rule when an alert fires. See Manage scaling groups and Configure scaling rules. Simple Log Service When enabled, writes the alert to the specified Logstore. Simple Message Queue (formerly MNS) - Topic When enabled, writes the alert to a topic in Simple Message Queue (formerly MNS). Specify the Region and topicName. For instructions on creating a topic, see Create a topic. Function Compute When enabled, sends the alert to Function Compute for format processing. Specify the Region, Service, and Function. Click Confirm.
Manage alert rules
| Operation | When to use it |
|---|---|
| Modify an alert rule | The current rule no longer reflects your monitoring requirements. |
| Disable alert rules | During planned maintenance or upgrades, to suppress unnecessary notifications. |
| Enable alert rules | After maintenance or upgrades are complete, to resume monitoring. |
| Delete alert rules | When a rule is no longer needed. Important Deleting a bucket does not delete its associated alert rules. Delete alert rules manually if you no longer need them. |
| View the alert history of a specific alert rule | To review past alerts and identify which resources triggered them. |
| Use the alert callback feature to send notifications about threshold-triggered alerts | To integrate alert notifications into your O&M or messaging systems. |
| Merge alert notifications | When an alert rule fires for multiple resources within the same cycle, CloudMonitor sends the first notification and merges subsequent ones to reduce noise. |