Help Center/ Cloud Eye/ User Guide/ Alarm Management/ Alarm Rules/ Creating an Alarm Rule and Notifications
Updated on 2025-12-02 GMT+08:00

Creating an Alarm Rule and Notifications

To monitor the usage of cloud service resources or key operations on them, you can create an alarm rule. After the alarm rule is created, if a metric reaches the specified threshold or the specified event occurs, Cloud Eye immediately informs you of the exception through SMN.

This topic describes how to create an alarm rule.

Alarm notifications sent by SMN will be billed based on their frequency and message length. For details, see Product Pricing Details.

Prerequisites

Alarm Type

Prerequisites

Metric

  • Before creating a metric alarm rule for a cloud service, ensure that its instances have automatically reported monitoring data to Cloud Eye.
  • Before creating an alarm rule for Agent metrics, ensure that Agent has been installed on the server. For details, see Installing the Agent.
  • Before creating an alarm rule for process monitoring metrics, ensure that you have added custom processes for monitoring. For details, see Adding Process Monitoring.

Event

Before creating an alarm rule for a custom event, ensure that the event source is the same as that specified in Reporting Events.

Creating an Alarm Rule

  1. Log in to the Cloud Eye console.
  1. In the navigation pane, choose Alarm Management > Alarm Rules.
  2. Click Create Alarm Rule in the upper right corner.
  3. On the Create Alarm Rule page, configure parameters.
    Assume that you want to notify all recipients in the notification group Notification_Group every hour when the raw data of CPU usage of any ECS exceeds 80% for three consecutive periods. In this case:
    1. Set Alarm Type to Metric.
    2. Set Cloud Product to Elastic Cloud Server - ECSs.
    3. Set Resource Level to Cloud product.
    4. Set Monitoring Scope to All resources.
    5. Set Method to Configure manually and set an alarm policy to trigger Hourly alarms when Raw data of ECSs / CPU Usage > 80% (marked as Major) for 3 times (consecutively).
    6. Enable Alarm Notifications and set Notified By to Notification groups.
    7. Select Notification_Group for Notification Group. Retain the default values for other parameters or leave them blank.
    8. Click Create.

Basic Parameters of an Alarm Rule

Parameter

Description

Name

Name of the alarm rule. The name is automatically generated, but you can change it to a custom one. The rule name cannot exceed 128 characters and can contain only letters, digits, underscores (_), and hyphens (-).

Description

(Optional) Alarm rule description. It can contain up to 256 characters.

Parameters of the Alarm Content

The alarm content parameters vary depending on the alarm type. You can check the parameter description based on the selected alarm type.

When setting Alarm Type to Metric, you can configure the alarm content by referring to the following table.

Parameter

Description

Example Value

Cloud Product

Name of the monitored service.

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. You can select Cloud product or Specific dimension. Cloud product is recommended.

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

NOTE:

If you select Cloud product, 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. You can select Resource groups, All resources, or Specific resources.

  • All resources: An alarm will be triggered if any resource of the selected 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 to select resources.

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.

NOTE:

If the resource group contains an EVS resource with the type in the format of ECS instance ID-volume-Volume ID, the instance cannot report monitoring data after the alarm rule is created. As a result, no alarm can be triggered.

-

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.

-

Threshold Type

For ECSs, you can select Static or Dynamic. The feature is available only in the CN South-Guangzhou region.

  • Static: indicates the fixed value set in an alarm rule. If the fixed value is reached, an alarm will be triggered.
  • Dynamic: indicates the predicative value range calculated based on historical data. If the current metric deviates from the predicted value range, an alarm is triggered.

Static

Method

Mode for configuring an alarm policy. You can select Associate template or Configure manually.

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

Configure manually

Template

When you set Method 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.

  • When you set Resource Level to Cloud product, all alarm policies of the cloud product in the alarm template will be synchronized to the alarm rule.
  • When you set Resource Level 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.

-

Alarm Policy

When you set Method to Configure manually, you need to configure 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. For details about alarm policy parameters, see Configuring Alarm Policies for Metrics.

You can customize alarm policy parameters or select Use Template to select an alarm template and modify the alarm policies in that template. Changes made will not affect the original policies in that template.

An alarm will be triggered when the monitored data reaches the threshold the specified consecutive times. For example, Cloud Eye triggers a major alarm if the average CPU usage of the monitored object is 80% or more for three consecutive 5-minute periods.

-

Operation

If there are multiple alarm policies, you can click Delete to delete one.

Delete

When setting Alarm Type to Event, you can configure the alarm content by referring to the following table.

Parameter

Description

Example Value

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

Monitoring Scope

Monitoring scope the alarm rule applies to.

  • All resources: An alarm will be triggered if any resource of the selected cloud product meets the alarm policy.
  • Resource groups: An alarm will be triggered if any resource in the selected resource group meets the alarm policy. Specific resources: Click Select Specific Resources to select resources.
NOTE:

This parameter is available when Event Type is set to System event. 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.

-

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.

-

Method

Method used to create an alarm rule. If you select System event for Event Type, Method can be Associate template or Configure manually. If you select Custom event for Event Type, only Configure manually is supported.

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

Configure manually

Template

When you set Method 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.

  • When you set Resource Level to Cloud product, all alarm policies of the cloud product in the alarm template will be synchronized to the alarm rule.
  • When you set Resource Level 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.

-

Alarm Policy

When you set Method to Configure manually, you need to configure 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. For details about alarm policy parameters, see Configuring Alarm Policies for Events.

You can customize alarm policy parameters or select Use Template to select an alarm template and modify the alarm policies in that template. Changes made will not affect the original policies in that template.

The event that triggers an alarm is an instant operation. For example, an alarm is triggered if a VM is restarted.

-

Operation

If there are multiple alarm policies, you can click Delete to delete one.

Delete

Alarm Notification Parameters

If no notification is received after alarm notification is enabled, rectify the fault by referring to Why Do Subscribers Fail to Receive Messages After I Publish Messages to a Topic?

Table 1 Configuring alarm notifications

Parameter

Description

Example Value

Alarm Notifications

Whether to send alarm notifications by SMS, email, FunctionGraph (function), FunctionGraph (Workflow), WeCom, DingTalk, Lark, WeLink, HTTP, or HTTPS. This parameter is enabled by default.

Enabled

Notified By

Notification method. You can select Notification groups or Topic subscriptions.

  • Notification groups: You can create a notification group and add recipients to the group to centrally send them alarm notifications. For details, see Creating a Recipient and Notification Group.
  • Topic subscriptions: If the current region does not support alarm notifications or the recipients have been configured in SMN, you can select a topic created in SMN and your cloud account contact as required.
NOTE:

Cloud Eye uses SMN for alarm notifications. If SMN has major delays, the alarm notifications may also be delayed.

Notification groups

Notification Group

If Notified By is set to Notification groups, you need to select the notification groups to which alarm notifications will be sent. For details, see Creating a Recipient and Notification Group.

-

Recipient

Target recipient of alarm notifications. You can select the account contact or a topic. This parameter is available only if Notified By is set to Topic subscriptions. If there is a display name of a topic, the format is Topic name (Display name), and you can search for a topic by name or display name. If no display name is set for a topic, only the topic name will be displayed.

  • The 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 there is no topic you need, create one first and add subscriptions to it. For details, see Creating a Topic and Adding Subscriptions.

Account contact

Notification Window

If Notified By is set to Notification groups or Topic subscriptions, you need to set the notification window.

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

For example, if the notification window is set to 08:00:00 to 20:00:00, notifications are sent only within this specified time range when a metric reaches the specified threshold or a specified event occurs.

08:00-20:00

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.

(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi, Kuala Lumpur, Singapore, Perth, Taipei, Irkutsk, Ulaanbaatar

Trigger Condition

This parameter is required when you set Notified By to Notification groups or Topic subscriptions.

  • If you set Alarm Type to Metric, select Generated alarm, Cleared alarm, or both for this parameter.
  • If you set Alarm Type to Event, you can only select Generated alarm for this parameter.

Generated alarm

Parameters of Advanced Settings

Parameter

Description

Enterprise Project

Enterprise project that the alarm rule belongs to. Only users with the enterprise project permissions can manage the alarm rule. For details about how to create an enterprise project, see Creating an Enterprise Project.

Tags

Key-value pairs that you can use to easily categorize and search for cloud resources. You are advised to create predefined tags in TMS. For details, see Creating Predefined Tags.

If you have configured tag policies for Cloud Eye, add tags to alarm rules based on the tag policies. If you add a tag that does not comply with the tag policies, alarm rules may fail to be created. Contact your 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 create up to 20 tags.

No-Data Processing

If Alarm Type is set to Metric or WAN, you can configure whether to trigger alarms when no data is reported. This parameter is selected by default. If selected, an alarm record will be generated if the configured metric reports no data for three consecutive hours.