All Products
Search
Document Center

ApsaraMQ for MQTT:Monitor metrics and configure alert rules

Last Updated:Mar 11, 2026

ApsaraMQ for MQTT integrates with CloudMonitor to collect metrics, visualize instance health, and send real-time alerts when thresholds are exceeded. Monitoring is available at no additional cost.

Metrics

ApsaraMQ for MQTT reports two categories of metrics: instance-level and topic-level.

Note

CloudMonitor applies a calculation coefficient to certain throughput metrics based on the transmission quality level of the instance. This affects how the values of MaxQpsPerInstance and AverageQpsPerInstance are calculated. For details, see Calculation coefficients.

Instance metrics

MetricMetric nameUnitCoefficient appliedDescription
Maximum QPS per minute on the V3 instanceMaxQpsPerInstancecount/sYesPeak queries per second within a one-minute window. Use this metric to determine whether the instance is being throttled.
Average QPS per minute on the instanceAverageQpsPerInstancecount/sYesMean queries per second within a one-minute window.
Outbound Internet traffic per minute on the instanceOutboundInternetTrafficPerInstancebytes/minNoVolume of data sent from the instance to the public Internet each minute.
Connections on the instanceConnectionsPerInstancecountNoCurrent number of active client connections.
Subscriptions on the instanceSubscriptionsPerInstancecountNoCurrent number of active topic subscriptions.

Topic metrics

MetricMetric nameUnitCoefficient appliedDescription
Average consumed messages per second on the topicSendTpsPerTopiccountNoRate at which subscribers consume messages from the topic.
Average produced messages on the topicReceiveTpsPerTopiccountNoRate at which publishers produce messages to the topic.
Subscriptions on the topicSubscriptionsPerTopiccountNoCurrent number of subscriptions to the topic.

Recommended baseline metrics

If you are setting up monitoring for the first time, start with these three metrics:

MetricWhy it matters
MaxQpsPerInstanceTracks whether the instance is approaching or hitting its QPS limit. A sustained high value indicates throttling may occur.
ConnectionsPerInstanceSudden drops or spikes in connection count often signal client-side issues or network problems.
SubscriptionsPerInstanceMonitors subscription growth. An unexpected increase may indicate a subscription leak in client code.

View monitoring charts

Before you begin, make sure that you have an ApsaraMQ for MQTT instance and access to the ApsaraMQ for MQTT console.

  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 of the target instance. On the Instances page, click the instance name to open the Instance Details page.

  3. In the left-side navigation pane, click Monitoring and Alerting, then click the Monitoring Chart tab.

  4. Select a resource type and a time range. Metric charts for the selected resource are displayed automatically.

Create an alert rule

Define thresholds on any metric to receive notifications when values exceed normal ranges. Alert rules are managed through CloudMonitor.

  1. On the Monitoring and Alerting page, click the Alert Rule tab, then click Create Alert Rule. The console redirects to the Create Alarm Rule panel in CloudMonitor.

  2. In the Create Alarm Rule panel, configure the alert conditions and notification settings, then click OK. For parameter descriptions and configuration steps, see Create an alert rule in the CloudMonitor documentation.

Recommended alert rules

When creating alert rules, prioritize the following metrics:

MetricRecommended threshold strategy
MaxQpsPerInstanceSet a warning threshold below the instance QPS limit to detect early signs of throttling before clients are affected.
ConnectionsPerInstanceAlert on sudden drops in connection count, which typically signal a service disruption or network issue.
OutboundInternetTrafficPerInstanceMonitor traffic volume approaching the bandwidth quota to prevent unexpected throttling.

Billing

CloudMonitor monitoring for ApsaraMQ for MQTT is free. No additional charges apply.