Creating Alarm Rules By Associating Resource Groups with Alarm Templates
When your account buys many cloud services, organize them efficiently by creating resource groups. When you need to configure alarms for these resources in batches, you can create alarm rules by associating resource groups with custom alarm templates.
Scenarios
You need to create alarm rules for multiple cloud services in batches.
Prerequisites
You have multiple resources in your account.
Constraints
For details about the cloud services supported by resource groups, see Cloud Services Supported by Resource Groups.
Creating a Resource Group
- Log in to the Cloud Eye console.
- In the navigation pane, choose Resource Groups.
- In the upper right corner, click Create Resource Group.
- On the Create Resource Group page, set the following parameters:
- Enter a resource group name, for example, Key_Service_Resource_Management.
- Set Add Resources to Automatically.
- Set Match Resources By to Enterprise project.
- Set Resource Level to Cloud product and select the cloud service to which the resources belong.
- Select an enterprise project that the resources belongs to.
- You can set Add Resources to Automatically or Manually. The Automatically option is recommended because resources in the group can update dynamically based on set rules.
- You can set Resource Level to Cloud product or Specific dimension. The Cloud product option is recommended.
- Configure alarm notification parameters.
- Click Create.
The created resource group appears in the resource group list.
Figure 1 Matching resources by enterprise project
Creating a Custom Alarm Template
- Log in to the Cloud Eye console.
- In the navigation pane, choose Alarm Management > Rule Settings.
- Click the Alarm Templates tab.
In some regions, the path is Alarm Management > Alarm Templates.
- Click Create Custom Template in the upper right corner.
- On the displayed page, set the template parameters as follows:
- Enter a template name, for example, Key_Service_Resource_Alarm_Template.
- Set Alarm Type to Metric.
- Set Method to Configure manually.
- Click Add Resource Type, select the cloud service to which your resources belong, and configure alarm policies. Figure 2 Creating a custom alarm template
- Click Create.
The created alarm template appears in the custom metric alarm template list.
Associating a Custom Metric Alarm Template with a Resource Group
- The new page of associating resource groups is now available in some regions. This feature will expand to other regions soon. For details, check the console.
- This section describes the procedure on the new page. For details about the procedure on the earlier page, see Associating a Custom Metric Template with a Resource Group.
- Log in to the Cloud Eye console.
- In the navigation pane, choose Alarm Management > Rule Settings.
- Click the Alarm Templates tab.
In some regions, the path is Alarm Management > Alarm Templates.
- Click the Custom Metric Templates tab.
- Locate the row that contains the target alarm template and click Associate with Resource Group in the Operation column.
- On the Associate with Resource Group page, select the created resource group and determine whether to inherit the notification type configured for the resource group.
- If Inherit Notification Settings from the Resource Group is set to Yes, the alarm rules will inherit the notification type from the resource group. If the resource group has no notification type configured, the alarm rules will not have one either.
- If it is set to No, all associated alarm rules will not inherit the notification type from the resource group. Alarm Notifications in new alarm rules will be disabled, and the associated alarm rules will use existing alarm notification settings.
- 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 longer.
- In the Modified dialog box, view the names of updated alarm rules and click OK.
- After the association is successful, you can view the alarm rules created for different cloud services on the alarm rule list page.
For alarm rules created by associating a custom alarm template with a resource group, you cannot directly modify the policies in the alarm rules. Instead, you need to modify the policies in the custom alarm template.
Figure 3 Alarm rules
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