Creating a Custom Metric or Event Template
If you have a large number of cloud resources, you can use alarm templates to save alarm policies for various cloud product monitoring items. When creating or modifying alarm rules, you can directly use the template without redefining the alarm policies.
You can select a default template or create a custom one as needed. This topic describes how to create a custom metric or event template.
Constraints
- A user can create up to 200 custom alarm templates.
- Up to 50 alarm policies can be added for a single service in an alarm template.
- Up to 1,000 alarm policies can be added to an alarm template.
Creating a Custom 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.
- On the Custom Metric Templates or Custom Event Templates tab page, click Create Custom Template.
- On the displayed page, configure basic information.
Table 1 Parameters of a custom metric alarm template Parameter
Description
Example Value
Name
Alarm template name. The name is automatically generated, but you can modify it. Enter up to 128 characters, including letters, digits, spaces, and the following special characters: _-.()
alarmTemplate-c6ft
Alarm Type
Alarm type to which the alarm template applies. The value can be Metric or Event.
Metric
Description
(Optional) Description of the custom alarm template. Enter up to 256 characters, including letters, digits, and the following special characters: _- .,:';"
-
Table 2 Parameters of a custom event alarm template Parameter
Description
Example Value
Name
Alarm template name. The name is automatically generated, but you can change it to a custom one. Enter up to 128 characters, including letters, digits, spaces, and the following special characters: _-.()
alarmTemplate-qrh3
Alarm Type
Alarm type to which the alarm template applies. The value can be Metric or Event.
Event
Event Type
Event monitoring type. Only System event is supported.
System event
Description
(Optional) Description of the custom alarm template. Enter up to 256 characters, including letters, digits, and the following special characters: _- .,:';"
-
- Configure the alarm policy as prompted.
Table 3 Alarm policy parameters Parameter
Description
Example Value
Method
You can select Use existing template or Configure manually.
- Use existing template: You can select one or more existing templates. If you select multiple existing templates, the metric information is distinguished by resource type.
- Configure manually: You can customize an alarm template as required.
Configure manually
Add Resource Type
Select the service to be monitored using the alarm template and configure the alarm policies. For details about alarm policy parameters, see Configuring an Alarm Policy.
NOTE:Up to 50 resource types can be added for each service.
Elastic Cloud Server
- Click Create.
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