Updated on 2023-06-13 GMT+08:00

Creating Alarm Rules

The alarm function is based on collected metrics. You can set alarm rules for key metrics of SFS. When the metric data triggers the conditions set in the alarm rule, Cloud Eye sends emails to you, or sends HTTP/HTTPS requests to the servers. In this way, you are immediately informed of cloud service exceptions and can quickly handle the faults to avoid service losses.

Cloud Eye uses Simple Message Notification (SMN) to notify users. This requires you to create a topic and add relevant subscribers for this topic on the SMN console first. Then when you create alarm rules, you can enable the Alarm Notification function and select the created topic. When an error occurs, Cloud Eye can broadcast alarm information to those subscribers in real time.

Creating an Alarm Rule

  1. Log in to the management console.
  2. Choose Management & Governance > Cloud Eye > Cloud Service Monitoring > Scalable File Service. Or, choose Management & Governance > Cloud Eye > Cloud Service Monitoring > Elastic File Service.
  3. Click Create Alarm Rule in the Operation column of the target file system.
  4. On the Create Alarm Rule page, set parameters as prompted.
    1. Select an object and configure other parameters listed in Table 1. Click Next.

      If the monitored object is a file system, you can only search it by ID instead of name.

      Table 1 Parameter description

      Parameter

      Description

      Example Value

      Resource Type

      Specifies the name of the service for which the alarm rule is configured.

      Scalable File Service

      Dimension

      Specifies the metric dimension of the alarm rule.

      File systems

      Monitored Object

      Specifies the resource for which the alarm rule is configured. You can specify one or more resources.

      -

    2. In the Select Metric step, select Import from template and configure parameters based on Table 2.
      Table 2 Parameter description

      Parameter

      Description

      Example Value

      Source

      Specifies the means by which you create the alarm rule.

      Import from template

      Template

      Select the template to be imported.

      -

      Send Notification

      Specifies whether to notify users when alarms are triggered. Notifications can be sent via emails, or HTTP/HTTPS requests.

      You can enable (recommended) or disable this function.

      Enable

      Notification Object

      Name of the topic to which the alarm notification is sent.

      If you enable the notification function, you need to select a topic. If no desired topics are available, you need to create one first, whereupon the SMN service is invoked. For details about how to create a topic, see the Simple Message Notification User Guide.

      -

      Trigger Condition

      Specifies the condition for triggering the alarm. You can select Generated alarm, Cleared alarm, or both.

      -

    3. In the Specify Rule Name step, set the parameters listed in Table 3. After the configuration is complete, click Create.
      Table 3 Parameter description

      Parameter

      Description

      Example Value

      Name

      Name of the alarm rule. The system generates a name randomly but you can change it.

      alarm-b6al

      Description

      Alarm rule description. This parameter is optional.

      -

After the alarm rule is created, if the metric data reaches the specified threshold, Cloud Eye immediately informs you that an exception has occurred. For details about other operations, see the Cloud Eye User Guide.