Message Queue for MQTT allows you to configure an alert rule for monitoring related metrics. You can specify an alert threshold for each metric. After the specified threshold of a metric is exceeded, Message Queue for MQTT automatically sends an alert notification. This way, you can know the statuses of metrics and take measures to handle exceptions at the earliest opportunity. This topic describes how to configure an alert rule for an instance in the Message Queue for MQTT console.
- Connections: the number of clients that are connected to a single instance
- Message TPS: the number of transactions per second (TPS) for sending and receiving messages on a single instance
- Subscriptions: the number of subscriptions on a single instance
By default, an alert rule is enabled after it is created in Message Queue for MQTT. The default threshold of each metric is 70% of the maximum value supported by the instance specifications. For more information about the metric limits of instance specifications, see Limits.
- Log on to the Message Queue for MQTT console.
- In the left-side navigation pane, click Instances.
- In the top navigation bar, select a region.
- On the Instances page, find the instance for which you want to configure an alert rule and click Configure Alert in the Actions column.
- In the Configure Alert for Instance panel, set the Enable Alert parameter, specify
an alert threshold for each metric, and then click OK.
- If you set the Enable Alert parameter to Yes, the alert rule is enabled. In this case, if the specified threshold of a metric is exceeded, Message Queue for MQTT sends an alert notification.
- If you set the Enable Alert parameter to No, the alert rule is disabled. In this case, no alert is triggered even if the specified threshold of a metric is exceeded.