This guide provides detailed instructions on how to create and manage alert rules in the Cloud Monitor service, helping you implement automated monitoring and respond to events in a timely manner for your cloud resources.
Alert Rule Overview
Alert rules are a core feature of Cloud Monitor. They allow you to define trigger conditions, and when a resource’s performance metrics meet those conditions, the system automatically sends notifications to designated contacts.
You can configure alerts based on two main data types:
- Real-time data: Used to monitor immediate metric changes. This is ideal for operational scenarios that require rapid response, such as sudden traffic spikes, performance degradation, or security attacks.
- Monthly/Daily data: Used to calculate and monitor aggregated data over a specific period, such as total traffic or peak bandwidth. This is mainly used for cost accounting, capacity planning, billing analysis, and operational analysis.
Prerequisites
Before creating alert rules, make sure that you have configured the Contacts and Contact Groups that will receive alert notifications in Alert Contacts.
1. Creating an Alert Rule
- Log in to the Cloud Monitor console.
- In the left-side navigation menu, select Alerts > Alert Rules.
- On the Alert Rules page, click Add Alert Rule.
- Follow the on-screen steps to complete the configuration.
Step 1: Basic Information
- Rule Name: Set a unique name for your alert rule. This name is used as the subject of the alert notification, so a clear and descriptive name is recommended.
- Data Type:
- Select Real-time data for operational monitoring.
- Select Monthly/Daily data for billing and usage analysis. If you choose monthly data, you must also specify the start day of the monthly billing cycle.
Step 2: Alert Rule
- Dimension: Choose the scope of resources you want to monitor. This can be Main Account Dimension (all resources), Domain Dimension, a specific Control Group, or a specific product such as Dynamic Web Acceleration.
- Statistics Type:
- Consolidated: Monitors the combined metric data from all selected objects in the chosen dimension. For example, if you monitor the bandwidth of 5 domains, the system compares the sum of their bandwidth values against the threshold.
- Separate: Monitors each selected object in the chosen dimension individually. For example, if you monitor 5 domains, an alert is triggered if any single domain’s bandwidth meets the rule condition.
- Note: This option cannot be edited when Data Type is set to Monthly/Daily data. In that case, it defaults to Consolidated.
- Rule Configuration: Click + Add Rule to define the conditions that trigger an alert.
- Period: Available only for Real-time data. Set the time period during which the rule is active, for example, business hours from 09:00 to 18:00.
- Trigger Logic: You can add multiple conditions and choose whether the alert is triggered when Any or All of the conditions are met.
- Continuation Period: Requires a condition to be met for N consecutive periods before the alert is triggered. This helps reduce false alarms caused by temporary spikes. For example, you can configure a rule to trigger only when bandwidth > 100 Mbps for 3 consecutive 1-minute periods.
- Conditions: Set the Metric, Comparison Operator (for example,
>, <, =), and Threshold to monitor.
- Alert Frequency: Set how often alert notifications are sent while the alert remains active.
- Alert Restore Notice: Enable this option to receive a notification when the alert condition is no longer met and the alert is cleared.
Step 3: Notification Method
- Notification Methods: Choose the notification channels, including Email, Robot, and Webhook.
- Recipients: Select the Contacts or Contact Groups that will receive the alert notifications.
Complete the Creation
After completing all configurations, click OK. The alert rule takes effect immediately.
2. Managing Existing Alert Rules
You can perform the following operations on existing alert rules:
- Return to Alerts > Alert Rules.
- Find the rule you want to manage in the list and perform one of the following actions:
- Edit: Click Edit to modify the rule parameters.
- Disable/Enable: Click Disable if you temporarily do not need the rule. You can click Enable later to reactivate it.
- Delete: Click Delete to permanently remove a rule that you no longer need. You can also select multiple rules and use Batch Delete.
- Alert Logs: Click Alert Logs to view the details of all alerts triggered by that specific rule, which is useful for troubleshooting and analysis.