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
- Log in to the management console.
- In the upper left corner, select a region and a project.
- Under Management & Deployment, select Cloud Eye.
- Choose Alarm Management > Alarm Rules and click Create Alarm Rule in the upper right corner.
- On the Create Alarm Rule page, follow the prompts to set the parameters.
- 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
- 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
- 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
- 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.
- Set Name and Description.
Last Article: Using Resource Groups
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.