Help Center/ Cloud Eye/ User Guide/ Alarm Management/ Alarm Templates/ Associating a Custom Metric Template with a Resource Group
Updated on 2025-08-19 GMT+08:00

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

Associating a Custom Metric Template with a Resource Group

  1. Log in to the Cloud Eye console.
  1. In the navigation pane, choose Alarm Management > Alarm Templates.
  2. Click the Custom MetricTemplates tab.
  3. Locate the target template and click Associate with Resource Group in the Operation column.
  4. On the Associate with Resource Group page, select the resource group to be associated.
  5. 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

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

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