Associating a Custom Alarm Template with a Resource Group
By associating a custom template with a resource group, you can create alarm rules for different resources in batches. If you have many cloud resources, you are advised to create resource groups by service application, create an alarm template, and associate the resource groups with the alarm template to create alarm rules in batches. This simplifies and speeds up rule creation and maintenance. After the template is associated with the resource groups, corresponding alarm rules will be generated. Any changes to the template will update all related alarm policies.
Prerequisites
- You have created a resource group by referring to Creating a Resource Group.
- You have created a custom alarm template by referring to Creating a Custom Alarm or Event Template.
Associating a Custom Alarm Template with a Resource Group
- Log in to the Cloud Eye console.
- In the navigation pane, choose Alarm Management > Alarm Templates.
- Click the Custom Template tab.
- Locate the target template and click Associate with Resource Group in the Operation column.
- On the Associate with Resource Group page, select the resource group to be associated.
- Configure the alarm notification.
Figure 1 Configuring alarm notifications
Table 1 Configuring alarm notifications Parameter
Description
Example Value
Alarm Notification
Whether to send alarm notifications by SMS, emailFunctionGraph (function), FunctionGraph (Workflow), WeCom, DingTalk, Lark, WeLink or HTTP or HTTPS. This parameter is enabled by default.
Enabled
Notified By
Notification method. You can select Notification groups, or Topic subscriptions.
- Notification groups: You need to create notification recipients and add them to a notification group.
- Topic subscriptions: You can select a cloud account contact or a custom topic created in SMN.
NOTE:Cloud Eye uses SMN for alarm notifications. If SMN has major delays, the alarm notifications may also be delayed.
Notification groups
Notification Group
Notification group for receiving alarm notifications. This parameter is available when Notified By is set to Notification groups. 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 name. 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.
- 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.
Account contact
Notification Window
This parameter is only available if you set Notified By to Notification groups or Topic subscriptions.
Time window during which Cloud Eye sends notifications.
If Notification Window is set to 08:00-20:00, Cloud Eye sends notifications only from 08:00 to 20:00.
08:00-20:00
Time Zone
Time zone for the alarm notification window. By default, it matches the time zone of the client server, 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 only available if you set Notified By to Notification groups or Topic subscriptions. 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.
Generated alarm
- Select an enterprise project.
Figure 2 Advanced Settings
Table 2 Parameter of Advanced Settings Parameter
Description
Example Value
Enterprise Project
Enterprise project that the alarm template belongs to. Only users who have all permissions for the enterprise project can manage the alarm template. To create an enterprise project, see Creating an Enterprise Project.
default
- Click OK.
This operation requires asynchronous creation, modification, and deletion of alarm rules, which takes 5 to 10 minutes. If there are multiple association tasks, this process takes a longer time.
Feedback
Was this page helpful?
Provide feedbackThank 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