Help Center/ Cloud Eye/ User Guide/ Alarm Management/ Alarm Templates/ Creating a Custom Metric or Event Template
Updated on 2026-07-24 GMT+08:00

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

  1. Log in to the Cloud Eye console.
  1. In the navigation pane, choose Alarm Management > Rule Settings.
  2. Click the Alarm Templates tab.

    In some regions, the path is Alarm Management > Alarm Templates.

  3. On the Custom Metric Templates or Custom Event Templates tab page, click Create Custom Template.
  4. 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: _- .,:';"

    -

  5. 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

  6. Click Create.