The alert template function enables you to set and store the alert policies of the metrics of cloud products in templates. When creating alert policies, you can directly use alert templates without defining alert policies all over again. When your account has many cloud resources (ECS, ApsaraDB for RDS, Server Load Balancer, and OSS), it is recommended that you create application groups for these resources from the service perspective and then create and apply alert templates to the application groups. This provides a simple way of creating and maintaining alert policies.
To use the alert template function and application group function in combination, you can create alert templates and apply these templates to application groups so that alert policies can be quickly created for service modules.
By default, CloudMonitor provides an initialized alert template that contains the common alert metrics for ECS、RDS、SLB、CDN、Redis、Mongodb、OSS, allowing you to quickly start using the template.
Creating or editing a template
- Log in to the cloud monitor console and click on Enter the alarm template page.
- At the upper-right corner of the page, click **Create Alert Template** to go to the page for creating an alert template.
- Fill out the alert template with the basic information, including the name and description, to facilitate subsequent management of the template and its purpose.
- Configure the alarm policy, click Add alarm rule, add rule description.
- Click confirm to save the template.
Using the alarm Template
- Apply an alert template to the application group to be created
When you create an apply grouping for a resource, you can select the alarm template that is required to apply the grouping directly at the last step. After applying grouping creation success, cloud monitoring generates alarm rules for you to apply grouping dimensions according to the alarm template.
- Apply an alert template directly to an application group
If you have created an application group but have not created alert policies for the group, you can create an alert template and then quickly apply the template to the group.
- Apply an alert template when creating alert policies
To add alert policies to an application group, select "Application Group" for the resource range on the page for creating alert policies and then select "Create from Template" and the corresponding alert template during alert policy setup. This method enables quick creation of alert policies.