Adding Threshold Rules
This function is available in AF-Johannesburg, LA-Mexico City1, LA-Mexico City2, LA-Sao Paulo1, and LA-Santiago.
You can set threshold conditions for resource metrics by setting threshold rules. If a metric value meets the threshold condition, a threshold alarm will be generated. If no metric data is reported, an insufficient data event will be generated.
When AOM is interconnected with Simple Message Notification (SMN) and you set a notification policy on the SMN console, notifications are sent by email or Short Message Service (SMS) message if the status of the threshold rule changes (Exceeded, OK, or Insufficient). In this way, you can identify and handle exceptions at the earliest time.
Precautions
- You can create a maximum of 1000 threshold rules. If the number of threshold rules reaches 1000, delete unnecessary rules and create new ones.
- Setting a notification policy
If you want to send notifications by email or SMS message when the threshold rule status (Exceeded, Normal, or Insufficient) changes, set a notification policy on the 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:
- Create a topic.
- Set a topic policy.
Select APM for Services that can publish messages to this topic. If APM is not selected, notifications cannot be sent.
- Add a subscription to a topic.
Creating a Threshold Rule
- Log in to the AOM console. In the navigation pane, choose Alarm Center > Threshold Rules. Then, click Add Threshold in the upper right corner.
- Customize a threshold rule.
- Select resources: Enter a threshold name, select a resource type, select the resources to be monitored from the resource tree, and click Next.
- You can select a maximum of 100 resources from the resource tree.
- When multiple resources are selected, multiple single-resource threshold rules will be created after the creation is complete. Each resource is monitored by a single-resource threshold rule. A rule name consists of the threshold rule name you enter in the Threshold name text box, and a sequence number ranging from 0 to 9. The earlier a resource is selected, the smaller its number.
Figure 1 Selecting resources - Define a threshold: Select the metric to be monitored, and set parameters such as Threshold Condition, Consecutive Period, Alarm Severity, Statistic Method, and Send Notification.
- 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 Periods: If a metric value meets the threshold condition for a specified number of consecutive periods, a threshold alarm is generated.
- Statistic Method: method used to measure metric values.
- Statistical Cycle: interval at which metric data is collected.
- Send Notification: whether to send notifications by email or SMS message when the 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 notifications if the threshold status changes to Exceeded, select Threshold crossing. To receive notifications upon any threshold status change, select all trigger conditions.
Figure 2 Customizing a threshold
- Select resources: Enter a threshold name, select a resource type, select the resources to be monitored from the resource tree, and click Next.
- Click Submit. As shown in the following figure, multiple single-resource threshold rules are created. One resource corresponds to one rule. Each resource can be monitored by an independent rule.
A single-resource threshold rule monitors a host. If the CPU usage of the host exceeds 85%, a threshold alarm is generated on the alarm page. You can choose Alarm Center > Alarm List in the navigation pane and view the alarm in the alarm list. If the host meets the preset notification policy, an email or SMS message will be sent.
Figure 3 Creating a single-resource threshold rule
More Operations
After creating threshold rules, perform the operations listed in Table 1 if needed.
Operation |
Description |
---|---|
Modifying a threshold rule |
Choose Modify Threshold in the Operation column. |
Deleting a threshold rule |
|
Searching for a threshold rule |
You can search for a rule by rule name, description, or metric name. Simply enter a keyword in the search box in the upper right corner and click |
Viewing an alarm |
When the metric value of a resource meets threshold conditions 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 |
When no metric data of a resource is reported during the configured consecutive periods, the system reports an insufficient data event. In the navigation pane, choose Alarm Center > Event List to view the event. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.