Configure a basic alert rule

更新时间:
复制 MD 格式

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

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Alerts.

  3. On the alert rules page, click Create Alert Rule.

  4. In the Create Alert Rule panel, configure the alert rule parameters.

    1. 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:

      1. Click Add Rule.

      2. In the Configure Rule Description panel, enter a rule name and then configure the alert condition.

      3. Click OK.

      For more information about the metrics supported by CPFS, see Metrics.

      Example

      To trigger a Critical-level alert when the data volume of a file system is greater than or equal to 4,155,796,933,836 bytes for three consecutive one-minute periods, configure the rule as follows. In the Configure Rule Description dialog box, select Simple Metric as the metric type and capacity / Data Volume as the metric. For the alert level, set the condition for Critical to trigger if the monitored value is >= 4155796933836 B (about 4.15 TB) for 3 consecutive periods, with notifications sent by phone call, SMS, email, and WebHook.

      Note

      If you scale up a file system, the total storage space changes. You must modify the alert rule and set a new threshold.

      To monitor multiple performance metrics of a file system, you can select Combined Metrics to configure multiple 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.

      Note

      You can add up to six tags.

    2. (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.

      1. 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.

        Note

        You can also set the Test Template Type: and Language:. Then click Test again to view updated test results.

      2. 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 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

  5. 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