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, or text messages, 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 & Deployment > Cloud Eye > Cloud Service Monitoring > Scalable File Service, or choose Management & Deployment > 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. Set Name and Description.
      Figure 1 Specifying the rule name
      Table 1 Parameters for specifying the rule name

      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.

      -

    2. Set Alarm Content parameters.
      Figure 2 Configuring the alarm content using a template
      Figure 3 Configuring the alarm content manually
      Table 2 Parameters for configuring the alarm content

      Parameter

      Description

      Example Value

      Method

      Select Use template or Create manually as required.

      NOTE:

      If you set Monitoring Scope to Specific resources, you can set Method to Use template.

      Use template

      Template

      Select the template to be imported.

      -

      Alarm Policy

      Specifies the policy that triggers an alarm.

      When Resource Type is set to Website Monitoring, Log Monitoring, Custom Monitoring, or a specific cloud service, the alarm policy takes effect periodically. When Resource Type is set to Event Monitoring, the specific event is an instant operation instead of a periodic action.

      -

      Alarm Severity

      Severity of an alarm. Valid values are Critical, Major, Minor, and Informational.

      Major

    3. Set Alarm Notification parameters.
      Figure 4 Configuring alarm notification
      Table 3 Parameters for configuring alarm notification

      Parameter

      Description

      Example Value

      Alarm Notification

      Specifies whether to notify users when alarms are triggered. Notifications can be sent by emails or text messages, or HTTP/HTTPS requests sent to the servers.

      You can enable (recommended) or disable Alarm Notification.

      Enable

      Validity Period

      Cloud Eye sends notifications only within the validity period specified in the alarm rule.

      If Validity Period is set to 00:00–8:00, Cloud Eye sends notifications only within 00:00–8:00.

      -

      Notification Object

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

      If you enable Alarm Notification, you need to select a topic. If no desired topics are available, 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

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

      -

    4. Click Create.

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.