Creating an Alarm Rule for an ECS or BMS (Agent) XX Metric
Scenarios
This topic describes how to create an alarm rule for an ECS or BMS Agent metric.
Procedure
- Log in to the management console.
- In the upper left corner, select a region and project.
- Under Management & Deployment, select Cloud Eye.
- In the navigation pane on the left, choose Server Monitoring.
- Locate the target ECS or BMS. In the Operation column, click More, and select Create Alarm Rule.
- On the Create Alarm Rule page, follow the prompts to set the parameters.
- Set the alarm rule name, description, and associated enterprise project.
Table 1 Parameter description Parameter
Description
Name
Specifies the alarm rule name. The system generates a random name, which you can modify.
Description
(Optional) Provides supplementary information about the alarm rule.
Enterprise Project
Specifies the enterprise project the alarm rule belongs to. Only users with the enterprise project permissions can view and manage the alarm rule.
- Select a monitored object and set alarm content parameters.
Figure 1 Configuring the alarm content
Table 2 Parameter description Parameter
Description
Example Value
Resource Type
Specifies the type of the resource the alarm rule is created for.
Elastic Cloud Server
Dimension
Specifies the metric dimension of the selected resource type.
ECSs
Monitoring Scope
Specifies the monitoring scope the alarm rule applies to.
Specific resources
Monitored Object
You do not need to set the monitored object because it is the current ECS.
N/A
Threshold Type
For ECSs, you can select Static or Dynamic. The feature is only available in region CN South-Guangzhou.
- Static: Indicates the fixed value set in an alarm rule. If the fixed value is reached, an alarm is triggered.
- Dynamic: Indicates the predicative value range calculated based on historical data. If the current metric data deviates from the predicted value range, an alarm is triggered.
Static
Method
There are two options: Use template or Create manually.
Create manually
Template
Specifies the template to be used.
N/A
Alarm Policy
Specifies the policy for triggering an alarm.
For example, an alarm is triggered if the average CPU usage of the monitored object is 80% or more for three consecutive 5-minute periods. Cloud Eye triggers an alarm every one hour again if the alarm persists.
For details about basic and OS monitoring metrics, see Services Interconnected with Cloud Eye.
NOTE:That is, if the alarm is not cleared after it is generated, an alarm notification is sent, once every hour.
N/A
Alarm Severity
Specifies the severity of the alarm. Valid values are Critical, Major, Minor, and Informational.
Major
- Configure the alarm notification.
Figure 2 Alarm Notification
Table 3 Parameter description Parameter
Description
Alarm Notification
Specifies whether to notify users when alarms are triggered. Notifications can be sent by email, text message, or HTTP/HTTPS message.
Notification Object
Specifies the object that receives alarm notifications. 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. For the HTTP(S) messages, see HTTP/HTTPS Messages.
Validity Period
Cloud Eye sends notifications only within the validity period specified in the alarm rule.
If Validity Period is set to 08:00-20:00, Cloud Eye sends notifications only within 08:00-20:00.
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.
- Click Create.
- Set the alarm rule name, description, and associated enterprise project.
After the alarm rule is created, if the metric data reaches the specified threshold, Cloud Eye immediately informs you that an exception has occurred.
Last Article: Viewing Server Monitoring Metrics
Next Article: Custom Monitoring
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.