Create a threshold-triggered alert rule
更新时间:
复制 MD 格式
CloudMonitor threshold-triggered alert rules monitor IoT Platform metrics such as online device counts, TSL model communication failures, and messages processed by the rules engine, and notify specified contacts when a threshold is breached.
Procedure
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose .
-
On the Alert Rules page, click Create Alert Rule.
- In the Create Alert Rule panel, configure the rule parameters.
- For Product, select IoT Platform.
- For Resource Range, select All Resources.
- Click Add Rule. In the Add Rule Description panel, configure the rule's conditions and click OK.
This example creates three rules at the critical alert level.
The following table describes the rules.
Rule name Condition Description Property reporting failures Triggers an alert if property reporting failures reach or exceed 100 over three consecutive 1-minute statistical periods. Monitors property reporting across all devices in the temperature sensor product. If consecutive failures persist, check device and network status. Data forwarding count Triggers an alert if the data forwarding count to Function Compute reaches or exceeds 10,000 over three consecutive 1-minute statistical periods. A data forwarding rule forwards data to Function Compute when a device reports a temperature above 25°C. A count of 10,000 indicates widespread high-temperature readings. Monitor temperature trends and investigate potential risks. Drop in online device count Triggers an alert if the online device count drops below 4,800 over three consecutive 1-minute statistical periods. Indicates a mass device disconnection. Check device and network status. - For Mute For, select 15 Minutes. This specifies the mute period. After 15 minutes, CloudMonitor resends the notification if the alert remains uncleared.
- Configure the Alert Contact Group and leave the other parameters at their default values.
- Click OK to create the rule.
Result
After the alert rule is created, CloudMonitor monitors your resources and sends notifications based on your settings when a metric breaches the threshold.该文章对您有帮助吗?