Updated on 2024-12-23 GMT+08:00

Creating an SFS Turbo Alarm Rule

The alarm function is based on collected metrics. You can set alarm rules for key metrics of SFS Turbo. 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 need to enable Alarm Notification 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 console.
  2. Choose Service List > Cloud Eye.
  3. In the navigation pane, choose Alarm Management > Alarm Rules.
  4. Click Create Alarm Rule in the upper right corner.
  5. On the Create Alarm Rule page, configure required parameters.
    1. Configure the basic information of the alarm rule.
      Figure 1 Basic information
      Table 1 Parameters for configuring the basic information of the alarm rule

      Parameter

      Description

      Example Value

      Name

      Name of the alarm rule. The system generates a name randomly, and you can change it as you want.

      alarm-b6al

      Description

      Description of the alarm rule. This parameter is optional.

      -

    2. Select monitored objects and configure alarm parameters.
      Figure 2 Configuring alarm rule parameters

      Table 2 Alarm rule parameters

      Parameter

      Description

      Example Value

      Alarm Type

      Alarm type to which the alarm rule will apply. The type can be Metric or Event.

      Metric

      Cloud Product

      This parameter is only available if you select Metric for Alarm Type. You need to select the cloud product you want to monitor from the drop-down list.

      Scalable File Service Turbo - File systems

      Resource Level

      This parameter only available if you select Metric for Alarm Type. You need to select the resource level of the alarm rule. You can select Cloud product (recommended) or Specific dimension.

      Cloud product

      Monitoring Scope

      This parameter only available if you select Metric for Alarm Type. You need to select the resource scope that the alarm rule will apply. You can select All resources, Resource groups, or Specified resources.

      NOTE:
      • All resources: An alarm will be triggered if any resource of the current cloud product meets the alarm policy. To exclude resources that do not require monitoring, click Select Resources to Exclude to select resources.
      • Resource groups: An alarm will be triggered if any resource in the group you select meets the alarm policy.
      • Specific resources: Click Select Specific Resources to select resources.

      All resources

      Group

      This parameter is only available if you select Metric for Alarm Type and Resource groups for Monitoring Scope.

      -

      Instance

      This parameter is only available if you select Metric for Alarm Type and Specific resources for Monitoring Scope.

      -

      Event Type

      This parameter is only available if you select Event for Alarm Type. You can select either System event or Custom event.

      System event

      Event Source

      This parameter is only available if you select Event for Alarm Type.

      • If you select System event for Event Type, select a cloud service from which the event comes.
      • If you select Custom event for Event Type, specify the event source. Ensure that the event source is the same as that of the reported fields and is written in the service.item format.

      -

      Method

      • Configure manually: If you select Event for Alarm Type and Custom Event for Event Type, only Configure manually can be set for Method.
      • Associate template: If you select this option, any modification made to the template will also be synchronized to the policies of the alarm rule that the template is associated.
        NOTE:
        • When Resource Level is set to Cloud product, only modifications made to the policies of the specified cloud product in the associated template will be automatically synchronized.
        • When Resource Level is set to Specific dimension, only modifications made to the policies of the specified dimension in the associated template will be automatically synchronized.

      Configure manually

      Template

      If you select Metric for Alarm Type and Associate template for Method, or select Event for Alarm Type, System event for Event Type, and Associate template for Method, you need to select a template.

      You can select a default template or create a custom template.

      -

      Alarm Policy

      If you select Event for Alarm Type and Custom event for Event Type, you need to set Alarm Policy.

      If you select Custom event for Event Type, as long as an event occurs, an alarm will be triggered. For example, if the operating status is abnormal, an alarm will be triggered.

      NOTE:

      A maximum of 50 alarm policies can be added to an alarm rule. If any of these alarm policies is met, an alarm will be triggered.

      -

      Alarm Severity

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

      Major

    3. Configure alarm notifications.
      Figure 3 Configuring alarm notifications

      Table 3 Parameters for configuring alarm notifications

      Parameter

      Description

      Alarm Notification

      Whether to send notifications to users over different protocols, such as SMS, email, voice notification, HTTP, HTTPS, FunctionGraph (function), FunctionGraph (workflow), WeCom chatbot, DingTalk chatbot, Lark chatbot, and WeLink chatbot.

      Notification Recipient

      You can select Notification groups or Topic subscriptions.

      • Notification groups: Configure notification templates on Cloud Eye.
      • Topic subscriptions: Configure notification templates on SMN.

      Notification Policies

      This parameter is only available if you select Notification policies for Notification Recipient. Select one or more notification policies. You can specify the notification group, window, template, and other parameters in a notification policy.

      Notification Group

      This parameter is only available if you select Notification groups for Notification Recipient. Select the notification groups to which alarm notifications will be sent.

      Notification Object

      This parameter is only available if you select Topic subscriptions for Notification Recipient. You can select the account contact or a topic name as the object to which alarm notifications will be sent.

      • Account contact is the mobile number and email address of the registered account.
      • Topic is used to publish messages and subscribe to notifications. If the required topic is unavailable, create one and add subscriptions to it. For details, see Creating a Topic and Adding Subscriptions.

      Notification Template

      This parameter is only available if you select Notification groups or Topic subscriptions for Notification Recipient. You can select an existing template or create a new one.

      Notification Window

      This parameter is only available if you select Notification groups or Topic subscriptions for Notification Recipient.

      Cloud Eye sends notifications only within the notification window you specified.

      If Notification Window is set to 08:00-20:00, Cloud Eye sends notifications only within this window.

      Trigger Condition

      This parameter is only available if you select Notification groups or Topic subscriptions for Notification Recipient.

      You can select either Generated alarm or Cleared alarm, or both.

      NOTE:

      When the alarm type is Event, you can only select Generated alarm for Trigger Condition.

    4. Configure Enterprise Project and Tag.
      Figure 4 Advanced Settings
      Table 4 Parameters for configuring advanced settings

      Parameter

      Description

      Enterprise Project

      Enterprise project to which the alarm rule belongs. Only users who have the permissions of the enterprise project can manage this alarm rule. To create an enterprise project, see Creating an Enterprise Project.

      Tag

      Tags are key-value pairs. You can tag cloud resources to easily categorize and search for them. You are advised to create predefined tags in TMS. To create predefined tags, see Creating Predefined Tags.

      If your organization has enabled tag policies and has a Cloud Eye-related tag policy attached, you must comply with the tag policy rules when creating alarm rules, otherwise alarm rules may fail to be created. Contact the organization administrator to learn more about tag policies.

      • A key can contain up to 128 characters, and a value can contain up to 225 characters.
      • You can add up to 20 tags.
    5. Click Create.