Creating an Alarm Rule
The alarm function provides the alarm service for monitoring data. By creating alarm rules, you can define how the alarm system checks monitoring data and sends alarm notifications when monitoring data meets alarm policies. Alarm rules for important metrics help you timely know metric data exceptions and quickly rectify the faults.
If you disable Alarm Notification when creating an alarm rule, no alarm notification will be sent. You can view the status changes of alarm rules using the alarm records function of Cloud Eye.
This section describes how to create alarm rules for metrics and events.
Creating an Alarm Rule for Metric Monitoring
- Log in to the Cloud Eye console.
- In the navigation pane on the left, choose Alarm Management > Alarm Rules.
- On the displayed Alarm Rules page, click Create Alarm Rule and configure required parameters.
- Alarm Type: The type of the alarm that the alarm rule applies to. Select Metric.
- Cloud Product: The name of the service for which the alarm rule is configured. Select Cloud Phone Host - Cloud Phone Servers.
- Dimension: The dimension can be Cloud Phone Servers, Cloud Phone Servers - Cloud Phones, Cloud Phone Servers - Disks, or Cloud Phone Servers - GPUs. Configure this parameter as required.
For details about other parameters, see Creating an Alarm Rule.
- Click Create.
If you have enabled Alarm Notification, you will be notified when an alarm is triggered.
Creating an Alarm Rule and Notification for Event Monitoring
- Log in to the Cloud Eye console.
- In the navigation pane on the left, choose Event Monitoring.
- On the displayed page, click Create Alarm Rule in the upper right corner.
If you want to create an alarm rule for an existing event, locate the target event in the event list and click Create Alarm Rule in the Operation column. On the displayed Create Alarm Rule page, required parameters have been configured for that event.
- On the Create Alarm Rule page, configure basic information about the alarm rule.
Table 1 Basic information Parameter
Description
Example
Name
Name of the alarm rule. The system already generates a random name. You can modify it as needed. The rule name cannot exceed 128 characters and can contain only letters, digits, underscores (_), and hyphens (-).
alarm-c3dv
Alarm Type
Alarm type that the alarm rule applies to. The default value is Event.
Event
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.
Cloud Phone
Monitoring Scope
Monitoring scope the alarm rule applies to.
All resources
- Configure alarm policy parameters.
Table 2 Alarm policy parameters Parameter
Description
Example
Event Name
Name of a cloud server monitoring event.
GPU failure
Triggering Period
An alarm will be sent to you if this event is triggered repeatedly within 5 minutes.
The following options are available: Within 5 minutes, Within 20 minutes, Within 1 hours, Within 4 hours, and Within 24 hours.
NOTE:This parameter is optional when you select Cumulative trigger.
Within 5 minutes
Trigger type
The value can be Immediate trigger (default) and Cumulative trigger.
Immediate trigger: After the event occurs, an alarm is triggered immediately.
Cumulative trigger: An alarm is generated only after the event is triggered for a preset number of times within the triggering period.
Cumulative trigger
Triggering times
Cumulative number of times the event occurred within the triggering period.
NOTE:This parameter is optional when you select Cumulative trigger.
2
Frequency
How often alarms are repeatedly notified when there is already an alarm.
The following options are available:
Once, Every 5 minutes, Every 10 minutes, Every 15 minutes, Every 30 minutes, Hourly, Every 3 hours, Every 6 hours, Every 12 hours, and Daily.
NOTE:This parameter is optional when you select Cumulative trigger.
Every 5 minutes
- Configure alarm notifications. Figure 1 Configuring the alarm notification
Table 3 Parameters for configuring alarm notifications Parameter
Description
Alarm Notifications
Whether to send alarm notifications by SMS, email, FunctionGraph (function), FunctionGraph (workflow), WeCom, DingTalk, Lark, WeLink, HTTP, or HTTPS. This feature is enabled by default.
Notified By
Notification method. You can select Notification groups or Topic subscriptions.
- Notification groups: A notification group includes one or more notification channels to send notifications to specified recipients. For details, see Creating a Recipient and Notification Group.
- Topic subscriptions: You need to select recipients for alarm notifications. You can select either the account contact or a custom topic created in SMN.
Notification Group
Notification group that alarm notifications will be sent to. For details about how to create a notification group, 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 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.
Notification Window
Cloud Eye sends notifications only within the notification window specified in the alarm rule.
If the notification window is set to 08:00-20:00, notifications are sent only within this specified time range.
Time Zone
Time zone for the alarm notification window. By default, it matches the time zone of the client, but can be manually configured.
Trigger Condition
When the alarm type is Event, you can select Generated alarm for Trigger Condition.
- Configure parameters in Advanced Settings. Figure 2 Advanced settings
Table 4 Parameter description 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.
Tag
Each tag is a key-value pair. You can tag cloud resources to easily categorize and search for them. You can create tags using 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.
- Click Create.
You can go to the Alarm Rules page and check the alarm rule you created. You can filter the new alarm rule by its name.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot