Облачная платформаAdvanced

Creating an Alarm Rule

Эта статья полезна?
Язык статьи: Английский
Перевести

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 monitoring 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 resource metrics and events on Cloud Eye.
  • Alarm rules can be created for all resources, resource groups, event monitoring, and custom 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, SMS message, or HTTP/HTTPS request.

Procedure

  1. Log in to the management console.
  2. Choose Service List > Cloud Eye.
  3. In the navigation pane, choose Alarm Management > Alarm Rules and click Create Alarm Rule in the upper right corner.
  4. On the Create Alarm Rule page, configure parameters.
    1. Configure basic information of the alarm rule.
      Table 1 Name and Description

      Parameter

      Description

      Name

      Alarm rule name. The system generates a random name, which you can modify.

      Example value: alarm-b6al

      Description

      (Optional) Supplementary information about the alarm rule.

    2. Select monitored objects and configure alarm 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. For details about how to select an alarm type, see Table 1.

      Metric

      Cloud Product

      Select the cloud product you want to monitor. This parameter is only available if you select Metric for Alarm Type.

      For details about supported cloud products and their metrics, see Cloud Product Metrics.

      Elastic Cloud Server - ECSs

      Resource Level

      Resource level of the monitored object. This parameter is only available if Alarm Type is set to Metric. The value can be Cloud product (recommended) or Specific dimension.

      Take ECS as an example. ECSs is the cloud product. Specific dimensions are disks, mount points, processes, and more.

      NOTE:

      If you select Cloud product for Resource Level, metrics across dimensions (such as Disk Usage and CPU Usage) can be configured in the same alarm rule. If you select Specific dimension, only metrics of the specified dimension can be configured for the same alarm rule

      Cloud product

      Monitoring Scope

      Monitoring scope the alarm rule applies to.

      • 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 need to be monitored, click Select Resources to Exclude.
      • Resource groups: An alarm will be triggered if any resource in the selected resource group meets the alarm policy. To exclude resources that do not need to be monitored, click Select Resources to Exclude.
      • Specific resources: Click Select Specific Resources next to Instance to select resources.
      NOTE:
      • If Alarm Type is set to Metric, you can select Resource groups, All resources, or Specific resources.
      • If Alarm Type is set to Event and Event Type is set to System event, you can configure the monitoring scope. Currently, Resource groups is only available for DDS, RDS, and DCS event alarms.

      Specific resources

      Group

      When Monitoring Scope is set to Resource groups, you need to select a group. If no resource group meets your needs, click Create Resource Group to create one.

      After selecting a resource group from the drop-down list, you can click View Resources in a Group to view the details of resources in the group. After an alarm rule is configured, the group cannot be modified.

      N/A

      Instance

      When Monitoring Scope is set to Specific resources, you need to select the monitored objects for the alarm rule.

      Click Select Specific Resources to select desired resources.

      N/A

      Event Type

      This parameter is only available if Alarm Type is set to Event. You can select either System event or Custom event. For details about the events supported by each cloud service, see Events Supported by Event Monitoring.

      System event

      Event Source

      This parameter is only available if Alarm Type is set to Event.

      • If Event Type is set to System event, select the cloud service from which the event comes.
      • If Event Type is set to Custom event, the event source must be the same as that of the reported source and written in the service.item format. For details about how to report an event, see Reporting Events.

      Elastic Cloud Server

      Method

      Select a method for configuring an alarm rule. For metric alarm rules or system event alarm rules, you can customize a policy or use a preset template to create one. For custom event alarm rules, you can only customize a policy.

      • Configure manually: You can create a custom alarm policy as needed.
      • Associate template: If the same alarm rule needs to be configured for multiple groups of resources under the same cloud product, you can use an alarm template to simplify operations.

      Configure manually

      Template

      If Method is set to Associate template, you need to select a template.

      You can select a default or custom template.

      NOTE:

      An alarm template may contain alarm policies of multiple cloud products or different dimensions of the same cloud product. When you create an alarm rule, the alarm policies vary according to the resource level.

      • If Resource Level is set to Cloud product, all alarm policies of the cloud product in the alarm template will be synchronized to the alarm rule.
      • If Resource Level is set to Specific dimension, only alarm policies of the same dimension as the current resource in the alarm template will be added to the alarm rule.

      N/A

      Alarm Policy

      If you select Configure manually for Method, you need to configure alarm policies.

      • When you set Alarm Type to Metric, whether to trigger an alarm depends on whether the data in consecutive periods reaches the threshold. For example, Cloud Eye triggers an alarm if the average CPU usage of the monitored object is 80% or more for three consecutive 5-minute periods.
      • If Alarm Type is set to Event and a specified event occurs, an alarm is triggered. For example, an alarm is triggered if a VM is restarted.

      For details about alarm policy parameters, see Alarm Policies.

      You can add up to 50 alarm policies for a single alarm rule. You can choose to send alarm notifications when any of the policies is met or when all policies are met.

      N/A

      Alarm Severity

      Alarm severity, which can be Critical, Major, Minor, or Warning.

      Major

    3. Configure alarm notifications.
      Table 3 Parameters for configuring alarm notifications

      Parameter

      Description

      Alarm Notifications

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

      Recipient

      Target recipient of alarm notifications. You can select the account contact or a topic name. This parameter is available only if Notified By is set to Topic subscriptions.

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

      Notification Window

      Time window during which Cloud Eye sends notifications.

      If you set Notification Window to 08:00 to 20:00, Cloud Eye only sends notifications within this period.

      Time Zone

      Time zone for the alarm notification window. By default, it matches the time zone of the client server, but can be manually configured.

      Trigger Condition

      Condition that will trigger an alarm notification. You can select Generated alarm (when an alarm is generated), Cleared alarm (when an alarm is cleared), or both.

    4. Click Create.

After the alarm rule is created, if a metric reaches the specified threshold, Cloud Eye immediately informs you of the exception through SMN.