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, custom monitoring, and event 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
- Log in to the management console.
- Choose Service List > Cloud Eye.
- In the navigation pane, choose Alarm Management > Alarm Rules and click Create Alarm Rule in the upper right corner.
- On the Create Alarm Rule page, configure the parameters.
- Set the alarm rule name and description.
Table 1 Name and Description Parameter
Description
Name
Specifies the alarm rule name. The system generates a random name, which you can modify.
Example value: alarm-b6al
Description
(Optional) Provides supplementary information about the alarm rule.
- Select resources and configure other parameters.
Table 2 Alarm Content parameters Parameter
Description
Example Value
Resource Type
Specifies the type of the resource the alarm rule is created for.
Elastic Cloud Server (ECS)
Dimension
Specifies the metric dimension of the selected resource type.
ECSs
Monitoring Scope
Specifies the monitoring scope the alarm rule applies to. 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 resources and click
to add them to the box on the right.
Specific resources
Group
This parameter is mandatory when Monitoring Scope is set to Resource groups.
N/A
Method
There are two options: Use template or Configure manually.
Configure manually
Template
Template to be used. This parameter is available only when you set Method to Associate template or Use existing template.
You can select a default or custom template.
N/A
Alarm Policy
Specifies the policy for triggering an alarm. This parameter is available only when you set Method to Configure manually.
If you set Resource Type to Custom Monitoring, or a specific cloud service, whether to trigger an alarm depends on whether the metric 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 you set Resource Type to Event Monitoring, the event that triggers the alarm is an instant event, for example, an ECS goes down.
NOTE:A maximum of 50 alarm policies can be added to an alarm rule. If any one of these alarm policies is met, an alarm is triggered.
N/A
Mount Point or Disk
This parameter is mandatory when the metric is a fine-grained disk metric.
For a Windows ECS, enter a drive letter, such as C, D, or E. For a Linux ECS, enter a mount point, such as /dev or /opt.
/dev
Alarm Severity
Specifies the alarm severity, which can be Critical, Major, Minor, or Informational.
Major
- Set alarm notification parameters.
Table 3 Alarm Notification parameters Parameter
Description
Alarm Notification
Specifies 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: Enter the phone 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.
Validity Period
Time window during which Cloud Eye sends notifications.
If Validity Period is set to 08:00-20:00, Cloud Eye sends notifications only from 08:00 to 20:00.
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.
- Click Create.
- Set the alarm rule name and description.
After the alarm rule is created, if the metric data reaches the specified threshold, Cloud Eye immediately informs you that an exception has occurred.
- Scenarios
- Functions
- Procedure