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.
There are two creation methods: Directly Creating Threshold Rules and Using Templates to Create Threshold Rules. Only one rule is generated at a time. All resources are monitored using the same rule. To use the second method to create threshold rules, ensure that a static threshold template has been created according to Creating a Static Threshold Template.
For details about Prometheus commands, move the cursor to next to the search box and click Learn more.
Specifically, choose Monitoring > Metric Monitoring in the navigation pane. Then, click Add Metric and select Dimension or Resource for Add By. Select up to 12 metrics to monitor. Next, click in the Operation column. The system automatically switches to the threshold rule creation page and fills the Prometheus command for your metric.
Category |
Parameter |
Description |
---|---|---|
Trigger Condition |
Statistical Period |
Interval at which metric data is collected. By default, only one period is measured. A maximum of five periods can be measured. |
Consecutive Periods |
When the metric value meets the threshold condition for a specified number of consecutive periods, a threshold-crossing alarm will be generated. |
|
Statistic |
Method used to measure metrics. Options: Avg., Min., Max., Sum, and Samples. |
|
Threshold Condition |
Trigger condition of a threshold alarm. A threshold condition consists of two parts: operators (≥, ≤, >, and <) and threshold value. For example, after Threshold Criterion is set to > 85, if the actual metric value exceeds 85, a threshold alarm is generated. Move the cursor to the graph area above the alarm condition. The ID, IP address, and unit of the current metric are displayed. |
|
Alarm Severity |
Severity of a threshold alarm. Options: Critical, Major, Minor, and Warning. |
|
Advanced Settings |
Alarm Clearance |
An alarm will be cleared if the monitored object does not meet the trigger condition within the monitoring period. By default, metrics in only one period are monitored. You can set up to five monitoring periods. |
Action Taken for Insufficient Data |
Action to be taken when no metric data is generated or metric data is insufficient within the monitoring period. You can set this option based on your requirements. By default, metrics in only one period are monitored. You can set up to five monitoring periods. Options: Alarm, Insufficient data, Keep previous status, and Normal. |
In the expanded list, if the metric data of a host meets the preset alarm condition, a threshold alarm is generated on the alarm page. To view the alarm, go to the AOM console and choose Alarm Center > Alarm List in the navigation pane.
Before creating threshold rules, ensure that a static threshold template has been created according to Creating a Static Threshold Template.
Category |
Parameter |
Description |
---|---|---|
Alarm Template |
- |
Select the static threshold template you have created. If the existing templates do not meet your requirements, click Create Alarm Template to create one. For details, see Creating a Static Threshold Template. |
Trigger Condition |
- |
The system automatically imports the preset trigger condition in the template. Note that the condition cannot be modified. |
Advanced Settings |
Alarm Clearance |
An alarm will be cleared if the monitored object does not meet the trigger condition within the monitoring period. By default, metrics in only one period are monitored. You can set up to five monitoring periods. |
Action Taken for Insufficient Data |
Action to be taken when no metric data is generated or metric data is insufficient within the monitoring period. You can set this option based on your requirements. By default, metrics in only one period are monitored. You can set up to five monitoring periods. Options: Alarm, Insufficient data, Keep previous status, and Normal. |
In the expanded list, if the metric data of a host meets the preset alarm condition, a threshold alarm is generated on the alarm page. To view the alarm, go to the AOM console and choose Alarm Center > Alarm List in the navigation pane.
After creating a threshold rule, perform the operations listed in Table 3 if needed.
Operation |
Description |
---|---|
Editing a threshold rule |
Click Edit in the Operation column. |
Deleting threshold rules |
|
Starting or stopping a threshold rule |
Click Start or 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 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 the 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 |
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. |