Help Center> Cloud Eye> Getting Started> Creating an Alarm Rule

Creating an Alarm Rule

Application Scenarios

The alarm function provides the alarm service for monitoring data. By creating alarm rules, you define how the alarm system checks monitoring data and sends alarm notifications when metric data meets alarm policies.

After creating alarm rules for important metrics, you can timely know metric data exceptions and quickly rectify the faults.

Functions

  • Alarm rules can be created for all monitoring items on Cloud Eye.
  • Alarm rules can be created for all resources, resource groups, log monitoring, custom monitoring, event monitoring, and website monitoring.
  • You can set validity periods of alarm rules, that is, customize the time when alarm rules take effect.
  • Alarm notifications can be sent by email, text message, or HTTP/HTTPS request.

Procedure

  1. Log in to the management console.
  2. In the upper left corner, select a region and a project.
  3. Under Management & Deployment, select Cloud Eye.
  4. Choose Alarm Management > Alarm Rules and click Create Alarm Rule in the upper right corner.
  5. On the Create Alarm Rule page, follow the prompts to set the parameters.
    1. Set Name and Description.
      Figure 1 Specify Rule Name
      Table 1 Name and Description

      Parameter

      Description

      Example Value

      Name

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

      alarm-b6al

      Description

      (Optional) Provides supplementary information about the alarm rule.

      N/A

    2. Select a monitored object and set alarm content parameters.
      Figure 2 Alarm Content
      Table 2 Alarm Content parameters

      Parameter

      Description

      Example Value

      Resource Type

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

      Elastic Cloud Server

      Dimension

      Specifies the metric dimension of the selected cloud resource.

      ECSs

      Monitoring Scope

      Specifies the resource range to which the alarm rule applies. You can select Resource groups or Specific resources.

      NOTE:
      • If Resource groups is selected and any resource in the group meets the alarm policy, an alarm is triggered.
      • If you select Specific resources, select one or more monitored objects and click to synchronize the monitored objects to the dialog box on the right.

      Specific resources

      Select Group

      This parameter is mandatory when Monitoring Scope is set to Resource groups.

      N/A

      Method

      There are two options: Use template or Create manually.

      NOTE:

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

      Create manually

      Template

      Specifies the template to be used.

      N/A

      Alarm Policy

      Specifies the policy that triggers an alarm.

      For example, an alarm is triggered if the average CPU usage is 80% or more for three consecutive periods of 5 minutes. Cloud Eye triggers an alarm every one hour again if the alarm persists.

      NOTE:

      That is, if the alarm is not cleared after it is generated, an alarm notification is sent, once every hour.

      N/A

      Mount Point

      This parameter is mandatory when the metric is a fine-grained disk metric.

      For the Windows OS, enter the drive letter, such as C, D, or E. For the Linux OS, enter the mount point, for example, /dev or /opt.

      /dev

      Alarm Severity

      Specifies the severity of the alarm. Valid values are Critical, Major, Minor, and Informational.

      Major

    3. Set Alarm Notification parameters.
      Figure 3 Alarm Notification parameters
      Table 3 Alarm Notification parameters

      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 this function.

      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.

      N/A

      Notification Object

      Specifies the object to which an alarm notification is to be sent. You can select the account contact or a topic.

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

      N/A

      Trigger Condition

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

      N/A

    4. After the configuration is complete, click Create.

      After the alarm rule is created, if the metric data reaches the alarm policy, Cloud Eye immediately informs you that an exception has occurred through SMN.