Creating a Static Threshold Template

This function is available in regions except CN-Hong Kong, CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou, and CN South-Shenzhen.

Static threshold templates are used for creating multi-resource static threshold rules. For details about how to create such rules, see Using Templates to Create Static Threshold Rules.

Precautions

  • You can create a maximum of 50 static threshold templates. If the maximum number has been reached, delete unnecessary templates and create new ones.
  • Setting a notification policy
    If you want to send notifications by email or Short Message Service (SMS) message when the static threshold rule status (Exceeded, Normal, or Insufficient) changes, set a notification policy on the Simple Message Notification (SMN) console according to the following procedure. If you do not need to receive email or SMS notifications, skip the following operations. The procedure is as follows:
    1. Create a topic according to Creating a Topic.
    2. Set a topic policy according to Configuring Topic Policies.

      Select APM for Services that can publish messages to this topic. If APM is not selected, notifications cannot be sent.

    3. Add a subscriber, that is, the email or SMS message recipient, for the topic according to Adding a Subscription.

Creation Method

  • Creating static threshold templates in one click: AOM provides default static threshold templates for key metrics (including the CPU usage, physical memory usage, host status, and service status) of all hosts and services, greatly reducing configuration workloads. For details, see Creating Default Static Threshold Templates.
  • Customizing static threshold templates: If the default static threshold templates cannot meet requirements, customize a static threshold template according to Customizing Static Threshold Templates.

Creating Default Static Threshold Templates

  1. Log in to the AOM console. In the navigation pane, choose Alarm Center > Threshold Rules.
  2. On the Rule List tab page, click Create Default Threshold.

    Figure 1 Default static threshold templates
    Table 1 Description of default static threshold templates

    Template/Rule

    Resource

    Metric

    Default Settings

    • Template: [node: default-static-template] CPU Usage
    • Rule: [node: default-static-rule] CPU Usage

    Host

    CPU usage

    Statistic Method: Average; Threshold Condition: > 90%; Consecutive Periods: 3; Statistical Cycle: 1 minute; Alarm Severity: Major; Send Notification: No

    • Template: [node: default-static-template] Physical Memory Usage
    • Rule: [node: default-static-rule] Physical Memory Usage

    Physical memory usage

    • Template: [node: default-static-template] Node Status
    • Rule: [node: default-static-rule] Node Status

    Host status

    Statistic Method: Average; Threshold Condition: > 0; Consecutive Periods: 1; Statistical Cycle: 1 minute; Alarm Severity: Major; Send Notification: No

    • Template: [service: default-static-template] CPU Usage
    • Rule: [service: default-static-rule] CPU Usage

    Component

    CPU usage

    Statistic Method: Average; Threshold Condition: > 90%; Consecutive Periods: 3; Statistical Cycle: 1 minute; Alarm Severity: Major; Send Notification: No

    • Template: [service: default-static-template] Physical Memory Usage
    • Rule: [service: default-static-rule] Physical Memory Usage

    Physical memory usage

    • Template: [service: default-static-template] Status
    • Rule: [service: default-static-rule] Status

    Component status

    Statistic Method: Average; Threshold Condition: > 0; Consecutive Periods: 1; Statistical Cycle: 1 minute; Alarm Severity: Major; Send Notification: No

    Default static threshold templates can be deleted or modified. To recreate default static threshold templates after deleting them, click Create Default Threshold again.

Customizing Static Threshold Templates

  1. Log in to the AOM console. In the navigation pane, choose Alarm Center > Threshold Rules.
  2. Click the Static Threshold Template tab, and then click Create Static Threshold Template.
  3. Customize a static threshold template.

    Enter a template name, select a resource type, set parameters such as Name, Statistic Method, and Threshold Condition, select an alarm severity, and determine whether to send notifications.
    • Statistic Method: method used to measure metric values.
    • Threshold Condition: trigger condition of a threshold alarm. A threshold condition consists of two parts: determination condition (≥, ≤, >, or <) and threshold value. For example, after Threshold Condition is set to > 85, if the actual metric value exceeds 85, a threshold alarm is generated.
    • Consecutive Period: If a metric value meets the threshold condition for a specified number of consecutive periods, a threshold alarm is generated.
    • Statistical Cycle: interval at which metric data is collected.
    • Send Notification: whether to send notifications by email or SMS message when the static threshold rule status (Exceeded, Normal, or Insufficient) changes.
      • If you want to receive email or SMS notifications, select Yes, set a notification policy, select a created topic, and select a trigger scenario.
      • If you do not need to receive notifications by email or SMS message, select No.
    • Trigger Scenario: condition for sending a notification. You can select multiple trigger conditions. For example, to receive a notification when the threshold status changes to Exceeded, select the Threshold crossing trigger scenario.
    Figure 2 Customizing a static threshold template

  4. Click Create.

More Operations

After creating a static threshold template, perform the operations listed in Table 2 if needed.

Table 2 Related operations

Operation

Description

Using a static threshold template to create a multi-resource static threshold rule

Click Create Threshold in the Operation column. For details, see Using Templates to Create Static Threshold Rules.

Modifying a static threshold template

Click Edit in the Operation column.

Deleting a static threshold template

  • To delete a static threshold template, click Delete in the Operation column.
  • To delete one or more static threshold templates, select them and click Delete above the template list.

Searching for a static threshold template

Enter a template name in the search box in the upper right corner and click .