Creating an Alarm Rule to Monitor a Server

Scenarios

This topic describes how to create an alarm rule for an ECS.

Procedure

  1. Log in to the management console.

  2. In the upper left corner, select a region and project.

  3. Click Service List in the upper left corner, and select Cloud Eye.

  4. In the navigation pane on the left, choose Server Monitoring.

  5. Locate the target ECS, and click Create Alarm Rule in the Operation column.

  6. On the Create Alarm Rule page, follow the prompts to configure the parameters.

    1. Configure the alarm rule name and description.

      Table 1 Alarm rule Name and Description

      Parameter

      Description

      Name

      Specifies the alarm rule name. The system generates a random name, which you can modify.

      Example value: alarm-b6al

      Description

      (Optional) Provides supplementary information about the alarm rule.

    2. You do not need to set the monitored object because it is the current ECS.

    3. In the Select Metric step, select Create manually and configure parameters based on Table 2.

      Table 2 Parameters

      Parameter

      Description

      Example Value

      Method

      Specifies the means you use to create the alarm rule.

      Create manually

      Metric

      For details about basic monitoring metrics, see Services Interconnected with Cloud Eye.

      N/A

      Mount Point or Disk

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

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

      /dev

      Alarm Policy

      Specifies the policy for triggering an alarm.

      For example, an alarm is triggered if the average value of the monitored metric is 80% or more for three consecutive 5-minute periods.

      N/A

      Alarm Severity

      Specifies the alarm severity, which can be Critical, Major, Minor, or Informational.

      Major

      Alarm Notification

      Specifies whether to notify users when alarms are triggered. Notifications can be sent by email, text message, or HTTP/HTTPS message.

      You can enable (recommended) or disable this function.

      Enable

      Topic

      Specifies the name of the topic the alarm notification is to be sent to.

      If you have enabled Alarm Notification, select a topic. If no desirable 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.

      N/A

      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

      Trigger Condition

      Specifies the condition for triggering the alarm notification. You can select Generated alarm (when an alarm is generated), Cleared alarm (when an alarm is cleared), or both.

      N/A

    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.