All Products
Search
Document Center

ApsaraMQ for MQTT:Monitoring and alerting

Last Updated:Dec 11, 2023

CloudMonitor provides features such as metric collection, visualization, and real-time alerting. ApsaraMQ for MQTT allows you to create alert rules by using CloudMonitor to monitor the running status of the service. This helps you detect system exceptions at the earliest opportunity and improve O&M efficiency.

Metrics

Note

When CloudMonitor calculates the values of the messaging transactions per second (TPS), message production TPS, and message consumption TPS for an ApsaraMQ for MQTT instance, a calculation coefficient is used based on the transmission quality level of the instance. For more information, see Calculation coefficients.

Resource type

Metric

Unit

Metric name

Note

Instance

Maximum QPS per minute on the V3 instance

count/s

MaxQpsPerInstance

  • The value of this metric is used to determine whether the instance is throttled.

  • When the system calculates the value of this metric, a calculation coefficient is used.

Average QPS per minute on the instance

count/s

AverageQpsPerInstance

When the system calculates the value of this metric, a calculation coefficient is used.

Outbound Internet traffic per minute on the instance

bytes/min

OutboundInternetTrafficPerInstance

None.

Number of connections on the instance

count

ConnectionsPerInstance

None.

Number of subscriptions on the instance

count

SubscriptionsPerInstance

None.

Topic

Average number of consumed messages per second on the topic

count

SendTpsPerTopic

When the system calculates the value of this metric, a calculation coefficient is not used.

Average number of produced messages on the topic

count

ReceiveTpsPerTopic

When the system calculates the value of this metric, a calculation coefficient is not used.

Number of subscriptions on the topic

count

SubscriptionsPerTopic

None.

Billing

You are not charged for using CloudMonitor in ApsaraMQ for MQTT.

View metrics

  1. Log on to the ApsaraMQ for MQTT console. In the left-side navigation pane, click Instances.

  2. In the top navigation bar, select the region where the instance that you want to manage resides. On the Instances page, click the instance name to go to the Instance Details page.

  3. In the left-side navigation pane, click Monitoring and Alerting. On the page that appears, click the Monitoring Chart tab.

  4. On the Monitoring Chart tab, select the type of resource that you want to manage and specify a query time range.

    All metric charts for the resource are automatically displayed on the page.

Create an alert rule

  1. On the Monitoring and Alerting page, click the Alert Rule tab and then click Create Alert Rule.

    The page is redirected to the Create Alarm Rule panel in the CloudMonitor console.

  2. In the Create Alarm Rule panel, follow the on-screen instructions to configure the rule and the notification settings. Then, click OK. For information about how to configure the parameters, see Create an alert rule.