Creating Threshold Rules

You can set threshold conditions for resource metrics by setting threshold rules. If a metric value meets a threshold condition, a threshold alarm is generated. If no metric data is reported, an insufficient data event is generated.

When Application Performance Management (APM) is interconnected with Simple Message Notification (SMN) and you set a notification policy on the SMN console, email or Short Message Service (SMS) notifications will be sent if the status of the threshold rule changes (Exceeded or OK). In this way, you can identify and handle exceptions at the earliest time.

Creation Mode

You can create multi-resource threshold rules as required.

For multi-resource threshold rules (taking effect in CN North-Beijing1 and CN East-Shanghai2 only), resources and rules are in many-to-one relationship. When multiple resources are monitored, only one rule is generated after the creation is complete. Multiple resources are monitored by the same rule.

To monitor multiple resources in a centralized manner, you need to create a static threshold template. For details, see Using a Static Threshold Template to Create a Multi-Resource Threshold Rule. Static threshold templates are used for creating multi-resource threshold rules. For how to create a static threshold template, see Creating Static Threshold Templates.

Precautions

  • You can create a maximum of 1000 threshold rules. If the maximum number has been reached, delete unnecessary rules and create new ones.
  • Setting a notification policy
    To send email or SMS notifications if the threshold rule status (Exceeded or OK) changes, set a notification policy on the SMN console according to the following procedure. If you do not need to receive notifications, skip the following procedure. 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. Otherwise, notifications cannot be sent.

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

Using a Static Threshold Template to Create a Multi-Resource Threshold Rule

This function takes effect only in CN North-Beijing1 and CN East-Shanghai2.

Before creating a multi-resource threshold rule, create a static threshold template according to Creating Static Threshold Templates.

  1. Log in to the APM console. In the navigation pane, choose Alarm Center > Threshold Rules.
  2. Click Adding a multi-resource threshold in the upper right corner of the page.
  3. Set parameters based on Table 1.

    Table 1 Setting parameters

    Parameter

    Description

    Example

    Threshold name

    Enter a threshold name.

    apm

    Description

    Enter a description.

    -

    Apply to All Applications

    • : One threshold rule will be created for all applications and services.
    • : You can select one or more resources to monitor. To monitor all services under an application, select them by application.

    -

  4. Enter an application or instance name in the search box to search, select resources, and click Next.
  5. Select the created static threshold template and metric.

    • If no template is available, click Create Static Threshold Template. For details, see Creating Static Threshold Templates.
    • If there are many templates, enter a template name in the search box to search.
    • You can also click Edit next to the template to edit the template.

  6. Click Submit.

Related Operations

After creating a threshold rule, you can also perform the operations described in Table 2.

Table 2 Related operations

Operation

Description

Modifying a threshold rule

Choose More > Modify Threshold in the Operation column.

Deleting a threshold rule

  • To delete a threshold rule, click Delete in the Operation column.
  • To delete one or more threshold rules, select it or them and click Delete above the rule list.

Starting or stopping a threshold rule

  • Choose More > Start in the Operation column.
  • Choose More > Stop in the Operation column.
NOTE:

Single-resource threshold rules cannot be started or stopped.

Searching for a threshold rule

You can search for a rule by name, description, or metric. Specifically, enter a keyword in the search box in the upper right corner and click .

Viewing an alarm

If the metric value of a resource meets a threshold condition during the configured consecutive periods, the system reports a threshold alarm.

In the navigation pane, choose Alarm Center > Alarm List to view the alarm.

Viewing an event

During the configured consecutive periods, when no metric data of a resource is reported, the system reports an insufficient data event.

In the navigation pane, choose Alarm Center > Event List to view the event.