Overview
CloudMonitor monitors IoT Platform resources based on events and thresholds. Event-based alerts are triggered by IoT Platform throttling rules, and threshold-based alerts are triggered by metric values that you specify.
Background information
Scenario
A total of 5,000 temperature sensors are deployed in an area that is designed to store hazardous goods. These devices communicate with IoT Platform by using the MQTT protocol. Every time the temperature fluctuates by 0.1°C, the temperature sensor sends the real-time temperature to IoT Platform. When the temperature exceeds 25°C, IoT Platform forwards the temperature data to Function Compute for subsequent processing.
Temperature data must be monitored continuously to ensure the safety of the storage area. The control room requires real-time temperature readings from each detection point to respond promptly. Therefore, the temperature sensors must remain online 24 hours a day. If many devices go offline simultaneously or become unstable (repeatedly switching between online and offline), repair the devices and networks. A rapid temperature rise may pose serious safety risks that require an immediate response.
Keep the temperature sensors at each detection point online 24 hours a day. Ensure that sensor data reaches Function Compute and monitor IoT Platform resource usage under the current account to prevent throttling and guarantee timely data reception.
Project design
Before you use CloudMonitor to monitor IoT Platform resources, create alert rules for IoT Platform in the CloudMonitor console.
Configure the following events to trigger alerts:
- The number of connection requests that a device sends per minute reaches the maximum limit.
- The number of connection requests that the current account sends to IoT Platform per second reaches the maximum limit.
- The number of requests that the current account publishes per second reaches the maximum limit.
- The number of messages that a device sends per second reaches the maximum limit.
- The number of requests that the current account sends to the rules engine per second reaches the maximum limit.
Configure the following thresholds to trigger alerts:
- The number of online devices (The MQTT protocol is used to connect the devices to IoT Platform).
- The number of property reporting failures.
- The number of messages that the rule engine forwards to Function Compute (FC).