Configure a basic alert rule
You can create alert rules to monitor the resource usage of Cloud Parallel File Storage (CPFS) file systems. If resource metrics meet the specified alert conditions, CloudMonitor automatically sends alert notifications. This allows you to promptly identify and handle data anomalies.
Prerequisites
-
Create a Cloud Parallel File Storage (CPFS) file system. For more information, see Create a file system.
-
Activate CloudMonitor.
To activate CloudMonitor, go to the CloudMonitor product page and follow the on-screen instructions.
Basic alert configuration
-
Log on to the CloudMonitor console.
-
In the left-side navigation pane, choose .
-
On the alert rules page, click Create Alert Rule.
-
In the Create Alert Rule panel, configure the alert rule parameters.
-
Configure the basic parameters as described in the following table.
Parameter
Description
Product
-
To monitor the capacity of a file system or the performance of the NFS protocol service, select CPFS.
-
To monitor the performance of a file system, select NAS.
Resource Range
The resources to which the alert rule applies. Valid values:
-
All Resources: The alert rule applies to all CPFS resources.
-
Application group: The alert rule applies to all resources in a specified application group.
-
Instance: The alert rule applies to specified resources.
Related Resource
If you set Resource Range to application group or instance, select the resources to associate from the drop-down list.
Rule Description
Specifies the condition that triggers an alert. To configure the rule, perform the following steps:
-
Click Add Rule.
-
In the Configure Rule Description panel, enter a rule name and then configure the alert condition.
-
Simple Metric: Select a metric, and then set a threshold and an alert level for the metric.
-
Combined Metrics: Select an alert level, and then set alert conditions for two or more metrics.
-
Expression: Select an alert level, and then set the alert conditions. For more information about how to configure complex alert conditions, see Description of alert rule expressions.
-
Dynamic threshold: For more information about dynamic thresholds, see Overview and Create an alert rule that is triggered by a dynamic threshold.
-
-
Click OK.
For more information about the metrics supported by CPFS, see Metrics.
Mute Period
The interval between repeated alert notifications for an unresolved alert. Valid values: 5 Minutes, 15 Minutes, 30 Minutes, 60 Minutes, 3 Hours, 6 Hours, 12 Hours, and 24 Hours.
When a metric reaches its alert threshold, an alert notification is sent.
-
If the metric continues to exceed the threshold during the mute period, CloudMonitor does not send another notification.
-
If the metric does not return to normal after the mute period, CloudMonitor sends another alert notification.
For example, if you set Mute Period to 12 Hours and an alert is not cleared, CloudMonitor sends another alert notification after 12 hours.
Effective Period
The period during which the alert rule is active.
Alert Contact Group
The contact group that receives alert notifications.
Alert notifications are sent to the contacts in the selected alert contact group. An alert contact group can contain one or more contacts.
For more information about how to create alert contacts and alert contact groups, see Create an alert contact or an alert contact group.
Tag
Tags for the alert rule, which are specified as key-value pairs.
NoteYou can add up to six tags.
-
-
(Optional) Click Advanced Settings, and configure the following parameters.
Parameter
Description
Alert Callback
A publicly accessible URL that receives alert data from Cloud Monitor via HTTP POST requests. Only HTTP is supported. For instructions, see Use threshold-based alert callbacks.
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.
Auto Scaling
If you enable Auto Scaling, Cloud Monitor triggers the associated scaling rule when an alert occurs. You must specify the Region, ESS Group, and ESS Rule.
To create a scaling group, see Configure a scaling group.
To create a scaling rule, see Configure a scaling rule.
Log Service
If you enable Simple Log Service, Cloud Monitor sends alert data to a Logstore in Simple Log Service when an alert occurs. You must specify the Region, ProjectName, and Logstore.
To create a project and Logstore, see Collect and analyze ECS text logs using LoongCollector.
Simple Message Queue (formerly MNS) - Topic
If you enable the Simple Message Queue (formerly MNS) - Topic switch, alarm information is sent to a Simple Message Queue topic when an alarm is triggered. You need to set the region and topic for the Simple Message Queue.
To create a topic, see Create a topic.
Function Compute
If you enable Function Compute, alert notifications are sent to Function Compute for processing when an alert occurs. You must specify the Region, Service, and Function.
For more information about how to configure a service and function, see Create a function in the Function Compute console.
Recovery Notification
Specifies whether to send a recovery notification when the alert is cleared.
Missing Data Treatment
The method to handle alerts when monitoring data is unavailable. Valid values:
Do not do anything (default)
Send alert notifications
Treated as normal
-
-
Click Confirm.
An alert notification is automatically sent if a file system metric exceeds the specified threshold, ensuring you are promptly notified of data anomalies.
Related topics
-
For more information about how to configure an alert rule that is triggered based on the ratios of multiple metrics, see Configure an advanced alert rule.
-
For more information about how to create an alert rule that is triggered by a dynamic threshold, see Create an alert rule that is triggered by a dynamic threshold.
-
For more information about how to view resources that have active alerts, see View resources with active alerts.
-
For more information about how to modify an alert rule, see Modify an alert rule.
-
For more information about how to merge alert notifications from different alert rules, see Consolidate alert notifications.