IoT Platform allows you to use Cloud Monitor. You can configure threshold-triggered and event-triggered alert rules to monitor the resource usage of IoT Platform. You can also receive notifications at the earliest opportunity when alerts are triggered.

Create a threshold-triggered alert rule

An alert is triggered when the resource usage of IoT Platform or the number of failed executions exceeds the specified threshold during the specified period of time. Then, Cloud Monitor sends an alert notification based on the threshold-triggered alert rule.

  • When you select IoT Platform for the Product parameter, the following metrics are supported:
    • DeviceEventReportError
    • DevicePropertyReportError
    • DevicePropertySettingError
    • DeviceServiceCallError
    • MessageCountForwardedThroughRuleEngine_REPUBLISH, MessageCountForwardedThroughRuleEngine_DATAHUB, MessageCountForwardedThroughRuleEngine_FC, MessageCountForwardedThroughRuleEngine_MNS, MessageCountForwardedThroughRuleEngine_MQ, MessageCountForwardedThroughRuleEngine_OTS, MessageCountForwardedThroughRuleEngine_RDS, and MessageCountForwardedThroughRuleEngine_TSDB
    • MessageCountSentFromIoT_MQTT and MessageCountSentFromIoT_LoRa
    • MessageCountSentToIoT_MQTT, MessageCountSentToIoT_CoAP, MessageCountSentToIoT_HTTP, and MessageCountSentToIoT_LoRa
    • OnlineDevicesCount_MQTT
    • MessageCountPerMinute
    • RuleEningeTransmitCountPerMinute
    • DeviceCount_Product
  • When you select IoT Platform-Instance for the Product parameter, the following metrics are supported:
    • DeviceNum_instance
    • MessageWatermarkTps_instance
    • RuleEngineWatermarkTps_instance

Perform the following steps to create a threshold-triggered alert rule:

  1. Log on to the IoT Platform console.
  2. In the left-side navigation pane, choose Maintenance > Real-time Monitoring.
  3. On the Real-time Monitoring page, click Alert Settings.
  4. On the Create Alert Rule page, set the parameters and click Confirm.
    Create Alert Rule
    Section Parameter Description
    Related Resource Product Select IoT Platform or IoT Platform-Instance.
    Resource Range Valid values:
    • All Resources: An alert notification is sent when one of your IoT Platform instances meets the description of the alert rule.
    • Instance: An alert notification is sent only when the specified products of the specified instances meet the description of the alert rule.
    Region This parameter is displayed only when you set the Resource Range parameter to Instance. This parameter specifies the region where the IoT Platform instance resides.
    Instance Select one or more IoT Platform instances and products to be monitored.
    Set Alert Rules Alert Rule The name of the alert rule.
    Rule Description This parameter defines the conditions that trigger an alert. You can configure the following items:
    • Select a 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 conditions that trigger an alert. For example, an alert is triggered when the number of devices exceeds 5,000 for three consecutive scan periods.
    Mute for The interval of re-sending the notification for an alert before the alert is cleared.
    Effective Period The period of time during which the alert rule is effective. The alert notifications are sent only within the effective period.
    Notification Method Notification Contact The alert groups to which alert notifications are sent. For more information about how to configure alert contacts, see Configure alert contacts.
    Notification Methods

    Set the value to:

    • Email + DingTalk (Info)
    Auto Scaling Specifies whether to use Auto Scaling. If you select this check box, the specified scaling rule is triggered when an alert is generated.
    Log Service Specifies whether to use Log Service. If you select this check box, the alert message is written to Log Service when an alert is generated.
    Email Subject This parameter is displayed only when you set the Resource Range parameter to Instance. This parameter specifies the subject of the email that is sent to notify alert contacts of an alert. By default, the value of the Email Subject parameter is in the format of Service name + Metric name + Instance ID.
    Email Remark The remarks that you want to include in the email that is sent to notify alert contacts of an alert.
    HTTP Callback The callback URL that is accessible from the Internet. Cloud Monitor sends a POST request to push an alert message to the specified callback URL.

For more information about how to configure a threshold-triggered alert rule, see Create a threshold-triggered alert rule.

Create an event-triggered alert rule

You can create an event-triggered alert rule in Cloud Monitor to monitor the following IoT Platform events:

  • The number of connection requests that are sent per minute by a device reaches the upper limit.
  • The number of messages that are sent per second by a device reaches the upper limit.
  • The number of messages that are received per second by a device reaches the upper limit.
  • The number of connection requests that are sent per second by the current account reaches the upper limit.
  • The number of messages that are sent per second by the current account reaches the upper limit.
  • The number of messages that are received per second by the current account reaches the upper limit.
  • The number of messages that are forwarded per second by the rules engine for the current account reaches the upper limit.

Perform the following steps to create an event-triggered alert rule:

  1. Log on to the IoT Platform console.
  2. In the left-side navigation pane, choose Maintenance > Real-time Monitoring.
  3. On the Real-time Monitoring page, click Alert Settings.
  4. On the Create Alert Rule page, click View the Detail in the Set Alert Rules section to go to the Event Monitoring page.
  5. On the Event Monitoring page, click Create Event Alert. In the Create / Modify Event Alert panel, configure the alert rule and click OK.
    Event monitoring
    Table 1. Parameters used to configure an event-triggered alert rule
    Parameter Description
    Alert Rule Name The name of the alert rule. Set a name as prompted.
    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.
    Alert Type Specify one or more alert groups and notification methods.

    For more information about how to configure an event-triggered alert rule, see Create an event-triggered alert rule.

References

Alert notifications