Help Center/ Cloud Eye/ User Guide/ Alarm Management/ Alarm Rules/ Creating an Alarm Rule (New Version)
Updated on 2026-08-13 GMT+08:00

Creating an Alarm Rule (New Version)

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.

In some regions, Cloud Eye has been upgraded to the latest version. The alarm rule page has been optimized. The upgrade is being rolled out in other regions. For details, see the console. This section describes how to configure alarm rules in the latest version. For details about how to configure alarm rules in the earlier version, see Creating an Alarm Rule (Earlier Version).

Billing

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

Constraints

  • When Specific resources is selected for the monitoring scope, a maximum of 1,000 resources can be selected for a single alarm rule by default. If the current resource quota cannot meet your requirements, you can apply for a higher quota by referring to Quotas. The maximum quota is 1,500. The actual quota varies depending on the service. If the number of resources exceeds 1,000, you are advised to use resource groups for configuration.
  • When creating an alarm rule of the metric type, if you select All resources or Resource groups as the monitoring scope, you can exclude resources. By default, a maximum of 100 resources can be excluded for a single alarm rule. If the current resource quota cannot meet your requirements, you can apply for a higher quota by referring to Quotas. The maximum quota is 500. The actual quota varies depending on the service.

Prerequisites

Alarm Type

Prerequisites

Metric

  • Before creating a metric alarm rule for a cloud service, ensure that its monitoring data can be queried in the cloud service monitoring list. For details about the conditions for displaying cloud services in the cloud service monitoring list, see Cloud Services Displayed in the Cloud Service Monitoring List.
  • 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 > Rule Settings.

    In some regions, the path is Alarm Management > Alarm Rules.

  2. On the displayed page, 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 contacts in the contact group Notification_Group once 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 Alarm Policy to Elastic Cloud Server Alarm Template(NPU).
    6. Enable Alarm Notifications and set Notified By to Contact groups.
    7. Select Notification_Group for Contact Group. Retain the default values for other parameters or leave them blank.
    8. Click Create.

Basic Parameters of an Alarm Rule

Table 1 Basic information

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 (-).

Alarm Type

Alarm type to which the alarm rule applies. You can select the metric or event type. The basic alarm rule parameters vary depending on the alarm type. For details, see Basic Alarm Rule Parameters of Metric Alarms and Basic Alarm Rule Parameters of Event Alarms.

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

Table 2 Parameters of the metric alarm content

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. For details about dimensions, see Dimensions.

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 All resources, Resource groups, or Specific resources.

  • All resources: An alarm will be triggered if any resource in 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. An alarm will be triggered if any selected resource meets the alarm policy.

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 Resource Details 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.

-

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

Table 3 Parameters of the event alarm content

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. 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 in 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. An alarm will be triggered if any selected resource meets the alarm policy.
NOTE:
  • This parameter is available when Event Type is set to System event.
  • Currently, Resource groups can be selected as the monitoring scope only when the event source is ECS (supported only in certain regions; for details, check the console), DDS, RDS, DCS, or GeminiDB.

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 Resource Details in a Group to view the details of resources in the group. After an alarm rule is configured, the group cannot be modified.

-

Dimension

When you set Monitoring Scope to Specific resources, select a dimension of the resources to connect the event data of the selected cloud service to Cloud Eye by dimension.

Document Database Instances

Alarm Policy Parameters

When creating an alarm rule, Cloud Eye provides default alarm templates for some cloud services. You do not need to manually configure the alarm rules, simplifying the creation process and improving user experience.

You can select an alarm template that contains the cloud service or dimension metric selected for the alarm rule. If the existing alarm templates do not meet your requirements, you can create one by referring to Creating a Custom Metric or Event Template. Click in the drop-down list to delete the selected alarm template and customize an alarm policy.

If you select a custom alarm template, you can select the check box on the right to determine whether to synchronize the changes of the alarm policies in the alarm template with those in the alarm rule. By default, the check box is not selected.
  • Selected: After an alarm rule is created using an alarm template, if you modify policies in the alarm template, the policies in the alarm rule will be modified accordingly.
  • Deselected: After an alarm rule is created using an alarm template, if you modify policies in the alarm template, the policies in the alarm rule will not be changed.

You can also click Add Alarm Policy to add more alarm policies as required. A maximum of 50 alarm policies can be added to an alarm rule. You can choose to send an alarm when any or all of the policies are met. If there are multiple alarm policies, you can click Delete in the Operation column of an alarm policy to delete it.

For details about the fields in an alarm policy, see Alarm Policies.

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?

Notification policies, contact groups, and notification templates are available only in some regions. These features will be available in other regions later. For details, check the console.

Table 4 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. Select Notification policies, Contact groups, or Topic subscriptions.

  • Notification policies: If several O&M owners handle service maintenance, you can set up different notification scopes in a notification policy to alert specific owners by alarm severity or at a specified schedule. For details, see Creating a Notification Policy.
  • Contact groups: Cloud Eye provides alarm notification capabilities. Select this option if you do not need to send alarm notifications by severity or schedule. To send alarm notifications to a group of contacts, you can create a contact group and add contacts to it in Cloud Eye for easier management. For details, see Creating a Contact/Contact 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 or your cloud account contact as required.

    For details, see Creating a Topic and Adding Subscriptions.

NOTE:

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

Contact groups

Notification Window

If Notified By is set to Contact 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 to 20: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 browser, 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 Contact 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

Notification Template

This parameter is only available if you set Notified By to Contact groups or Topic subscriptions. You can select an existing template or create one to send alarm notifications.

NOTE:

Some cloud services do not support fields such as the resource name, enterprise project, resource tag, private IP address, and public IP address in the notification template. When you select a system template as the notification template, these fields will appear blank in the alarm notifications even if you have them configured.

-

(Optional) Parameters of Advanced Settings

Table 5 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 255 characters.
  • You can create up to 20 tags.

Description

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

No-Data Processing

If Alarm Type is set to Metric, you can configure how to handle no-data alarms. You can choose to send an alarm, consider the alarm cleared, or take no action.
  • Generate no-data alarms: If a metric configured in the alarm rule does not report data for three consecutive hours, an alarm record will be generated indicating insufficient data.
  • Treated as cleared: If a metric configured in the alarm rule does not report data for three consecutive hours, the alarm record generated by the current alarm rule will be treated as cleared.
  • No action: If a metric configured in the alarm rule does not report data for three consecutive hours, no alarm record indicating insufficient data will be generated, and the alarm record generated by the alarm rule will not be cleared.
NOTE:
  • Generally, if a cloud service metric does not report data for three consecutive hours, the data is considered insufficient. If the reporting period of a metric is longer than three hours and no monitoring data is reported for three consecutive periods, the data is also considered insufficient.
  • In some regions, a switch is provided to determine whether to generate an alarm when no data is reported. By default, this switch is enabled. When enabled, an insufficient data alarm record will be generated if the configured metric reports no data for three consecutive hours.

Helpful Links