You can create alert rules to monitor the resource usage of your Cloud Parallel File Storage (CPFS) file systems. If a resource's metric meets the specified alert conditions, Cloud Monitor automatically sends an alert notification. This allows you to identify and handle exceptions promptly.
Prerequisites
-
A Cloud Parallel File Storage (CPFS) file system is created. For more information, see Create a file system.
-
Cloud Monitor is activated.
To activate Cloud Monitor, go to the Cloud Monitor product page and follow the on-screen instructions.
Procedure
-
Log on to the Cloud Monitor 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 parameters for the alert rule.
-
Configure the basic parameters as described in the following table.
Parameter
Description
Product
-
If you want to monitor the capacity of your file systems, select CPFS.
-
If you want to monitor the performance of your file systems, select NAS.
Resource Range
The range of resources to which the alert rule applies. Valid values:
-
All Resources: The alert rule applies to all your CPFS resources.
-
Application Group: The alert rule applies to all resources in a specified application group.
-
Instances: The alert rule applies to one or more specified instances.
Related Resource
If you set the Resource Range parameter to Application Group or Instances, select the resources that you want to monitor from the drop-down list.
Rule Description
The conditions that trigger the alert rule. Cloud Monitor triggers an alert when monitoring data meets these conditions. To configure the rule:
-
Click Add Rule.
-
In the Configure Rule Description panel, enter a Rule Name and then configure the rule conditions.
-
Simple Metric: Select a metric, then set a threshold and an alert level.
-
Combined Metrics: Select an alert level, then configure alert conditions for two or more metrics.
-
Expression: Select an alert level, then configure the alert conditions. For more information about how to configure complex alert conditions, see Alert rule expressions.
-
Dynamic Threshold: For more information about dynamic thresholds, see Overview and Create an alert rule based on a dynamic threshold.
NoteThe dynamic threshold feature is in invitational preview. To use this feature, you must submit a ticket to apply.
-
-
Click OK.
For more information about the metrics supported by Cloud Parallel File Storage (CPFS), see Metrics.
Mute Period
The interval at which alert notifications are resent if an alert is not cleared. Valid values: 5 minutes, 15 minutes, 30 minutes, 60 minutes, 3 hours, 6 hours, 12 hours, and 24 hours.
An alert notification is sent when a metric reaches its threshold.
-
If the metric continues to exceed the threshold within the mute period, no new notifications are sent.
-
If the metric does not return to normal after the mute period, Cloud Monitor sends another alert notification.
For example, if Mute Period is set to 12 Hours and the alert is not cleared, Cloud Monitor resends an alert notification 12 hours later.
Effective Period
The time range during which the alert rule is active. Cloud Monitor checks for alert conditions and sends notifications only within this period.
Alert Contact Group
The group of contacts who receive alert notifications.
Cloud Monitor sends alert notifications to the contacts in the selected alert contact group. An alert contact group can contain one or more alert contacts.
For more information, see Create an alert contact or an alert contact group.
Tag
The tags for the alert rule. A tag consists of a key and a value.
NoteYou can add up to six tags.
-
-
(Optional) Click Advanced Settings, and configure the parameters as described in the following table.
Parameter
Description
Alert Callback
A publicly accessible URL that receives alert data from Cloud Monitor via HTTP POST requests. Only HTTP is supported. Use threshold-based alert callbacks.
To test connectivity to the callback URL:
-
Click Test, located directly to the right of the callback URL.
In the WebHook Test panel, check the HTTP status code and test result details to verify connectivity.
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.
Log Service
If you enable Simple Log Service, Cloud Monitor sends alert data to a Logstore in Simple Log Service (SLS) when an alert occurs. You must specify the Region, ProjectName, and Logstore.
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.
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 to save the alert rule.
If a monitored metric exceeds its threshold, an alert notification is automatically sent, which helps you quickly identify and handle abnormal data.
Related documents
-
To configure an alert rule that is triggered based on the ratio of multiple metrics, see Configure an advanced alert rule.
-
To create an alert rule that is triggered based on a dynamic threshold, see Create an alert rule based on a dynamic threshold.
-
To view resources with active alerts, see View resources with active alerts.
-
To modify an alert rule, see Modify an alert rule.
-
To consolidate alert notifications across different alert rules, see Consolidate alert notifications.