You can set CloudMonitor to monitor the resource usage of your IoT Platform and receive
alerts.
Create a threshold-triggered alarm rule
IoT Platform allows you to use CloudMonitor to monitor IoT Platform by multiple metrics.
These metrics include the number of real-time online devices using a specific communication
protocol, the number of messages sent from devices to IoT Platform, the number of
messages sent from IoT Platform to devices, the number of messages forwarded by the
rules engine to other Alibaba Cloud service, the number of property report failures,
the number of event report failures, the number of service call failures, and the
number of property setting failures.
To create a threshold-triggered alarm rule, follow these steps:
- Log on to the IoT Platform console.
- In the left-side navigation pane, choose .
- On the Real-time Monitoring page, clickAlert Settings.
- On the Create Alarm Rule page, configure the parameters and then click Confirm.
Table 1. Alert rule parameters
Parameter |
Description |
Product |
Select IoT Platform.
|
Resource Range |
Includes the following value options:
- All Resources: An alert is sent when any instance under your IoT Platform service
meets the description of the alert rule.
- Instance: An alert is sent only when the specified products meet the description of
the alert rule.
|
Region |
This parameter is available only when you set Resource Range to Instance. Select the region of the IoT Platform instance monitored by this alert rule.
|
Instance |
Select an IoT Platform instance to be monitored and select one or more products. |
Alarm Rule |
Set the name of the alert rule. |
Rule Description |
Set the description of the alert rule. It defines the condition in which an alert
is triggered. You must configure the following items:
- Select a monitoring metric for the rule.
- Select a scan period for the rule. For example, if the scan period is set to 60 minutes,
scans are performed every 60 minutes.
- Set the triggering condition. For example, an alert is triggered only if the number
of devices exceeds 5,000 for three consecutive scan periods.
|
Mute for |
Set the period of time before which the alert is sent again if the exception persists
after the alert is triggered.
|
Effective Period |
Set the time range when the alert rule is applied. CloudMonitor applies the alert
rule to monitor the specified metric only during the specified effective period.
|
Notification Method |
Set notification parameters, such as the notification contacts and notification methods. |
For more information about setting threshold-triggered alert rules, see Procedure.
Create an event-triggered alert rule
You can use an event-triggered alert rule to monitor the following IoT Platform events:
- The upstream QPS of any device reaches the upper limit.
- The downstream QPS of any device reaches the upper limit.
- The number of connection requests per second for the current account reaches the upper
limit.
- The upstream QPS for the current account reaches the upper limit.
- The downstream QPS for the current account reaches the upper limit.
- The data forwarding QPS by the rules engine for the current account reaches the upper
limit.
To create an event alert rule, follow these steps:
- On the Real-time Monitoring page, clickAlert Settings
- On the Create Alarm Rule page, click View the Details in the event alarm description.
- On the Event Monitoring page, clickCreate Event Alert. In the dialog box on the right side, configure the alarm rule, and then clickOK.
The following figure shows how to create an event-triggered alert rule.
Table 2. Event-triggered alert rule parameters
Parameter |
Description |
Alarm Rule Name |
Set the name of the alert rule. |
Event Type |
Select System Event.
|
Product Type |
Select IoT Platform.
|
Event Type |
Select All types or Exception.
|
Event Level |
Select All Levels or select one or more specific event levels.
|
Event Name |
Select one or more events to be monitored. |
Resource Range |
Select All Resources.
|
Alarm Type |
Set the alert contacts and notification methods. |
For more information about setting event-triggered alert rules, see Create an event alert rule in the CloudMonitor documentation.