Associating a Custom Metric Template with a Resource Group
By associating a custom metric 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 a metric alarm template, and associate the resource groups with the 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 metric template by referring to Creating a Custom Alarm or Event Template.
Associating a Custom Metric Template with a Resource Group
- Log in to the Cloud Eye console.
- In the navigation pane, choose Alarm Management > Alarm Templates.
- Click the Custom MetricTemplates 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 alarm notifications.
Table 1 Configuring alarm notifications Parameter
Description
Example Value
Alarm Notification
Whether to send alarm notifications by SMS, email or HTTP or HTTPS. This parameter is enabled by default.
Enabled
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.
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 1 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.
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.