Lightweight Message Queue (formerly MNS) provides a new set of metrics that offers more granular data and additional metrics to enhance troubleshooting. The service is integrated with the latest Cloud Monitor architecture to ensure real-time and accurate data for a more efficient and convenient monitoring experience.
Usage
-
The new metrics are available in the China (Zhangjiakou), China (Chengdu), South Korea (Seoul), and Thailand (Bangkok) regions. Support for more regions will be added gradually.
-
In the Cloud Monitor console, choose to create new alert rules. The previous entry points, Message Service - Queue and Message Service - Topic, have been decommissioned.
WarningAlert rules that depend on the old Cloud Monitor metrics will become invalid. To prevent monitoring gaps, you must recreate your alert rules at the new entry point (Middleware > Lightweight Message Queue (formerly MNS)) as soon as possible.
Metrics
The AgeOfOldestMessage (message accumulation delay) and NumberOfMessagesInvisible (number of invisible messages) metrics are temporarily unavailable in the following regions: China (Beijing), China (Hangzhou), China (Shanghai), China (Shenzhen), Singapore, and UAE (Dubai). This also applies to the China East 2 (Shanghai) Finance, China South 1 (Shenzhen) Finance, and China North 2 (Beijing) Gov 1 regions.
|
Category |
Metric |
MetricName |
Unit |
|
User |
Maximum API QPS |
MaxApiQpsPerUser |
count/s |
|
API QPS usage |
WatermarkOfApiQps |
% |
|
|
Maximum console API QPS |
MaxConsoleApiQpsPerUser |
count/s |
|
|
Console API QPS usage |
WatermarkOfConsoleApiQps |
% |
|
|
Queue |
Message accumulation delay |
AgeOfOldestMessage |
ms |
|
Number of scheduled messages |
NumberOfMessagesDelayed |
count |
|
|
Number of visible messages |
NumberOfMessagesVisible |
count |
|
|
Number of invisible messages |
NumberOfMessagesInvisible |
count |
|
|
Number of Send API calls |
NumberOfSendAPICalls |
count |
|
|
Number of Receive API calls |
NumberOfReceiveAPICalls |
count |
|
|
Number of empty Receive API calls Note
This metric measures the number of Receive API calls that do not return a message. You can configure long polling to reduce the number of requests and lower costs. |
NumberOfEmptyReceives |
count |
|
|
Number of Delete API calls |
NumberOfDeleteAPICalls |
count |
|
|
Number of ChangeMessageVisibility API calls |
NumberOfChangeMessageVisibilityAPICalls |
count |
|
|
Number of BatchSend API calls |
NumberOfBatchSendAPICalls |
count |
|
|
Number of BatchReceive API calls |
NumberOfBatchReceiveAPICalls |
count |
|
|
Number of BatchDelete API calls |
NumberOfBatchDeleteAPICalls |
count |
|
|
Topic |
Number of publish requests per minute |
NumberOfPublishAPICallsPerTopic |
count |
|
Subscription |
Number of pushes per subscription |
NumberOfPushPerSubscription |
count |
|
Subscription processing success rate |
ProcessSuccessRatePerSubscription |
% |
|
|
Age of the oldest message in a subscription |
AgeOfOldestVisibleMessagePerSubscription |
ms |
|
|
Number of accumulated messages in a subscription |
NumberOfMessagesVisiblePerSubscription |
count |
Metric differences
Navigation
-
Old metrics: In the Cloud Monitor console, the metrics were located under .
-
New metrics: In the Cloud Monitor console, choose .
Metrics
|
Category |
New Cloud Monitor |
Old Cloud Monitor |
||
|
Metric |
MetricName |
Metric |
MetricName |
|
|
Queue |
Number of visible messages |
NumberOfMessagesVisible Minimum period: 60s |
Number of active messages |
ActiveMessages Minimum period: 300s |
|
Number of scheduled messages |
NumberOfMessagesDelayed Minimum period: 60s |
Delayed messages |
DelayMessages Minimum period: 300s |
|
|
Number of invisible messages |
NumberOfMessagesInvisible Minimum period: 60s |
Number of inactive messages |
InactiveMessages Minimum period: 300s |
|
|
Number of Send API calls |
NumberOfSendAPICalls |
Send message requests |
SendMessageCount |
|
|
Number of BatchSend API calls |
NumberOfBatchSendAPICalls |
Batch send message requests |
BatchSendMessageCount |
|
|
Number of Receive API calls |
NumberOfReceiveAPICalls |
Receive message requests |
ReceiveMessageCount |
|
|
Number of BatchReceive API calls |
NumberOfBatchReceiveAPICalls |
Batch receive message requests |
BatchReceiveMessageCount |
|
|
Number of Delete API calls |
NumberOfDeleteAPICalls |
Delete message requests |
DeleteMessageCount |
|
|
Number of BatchDelete API calls |
NumberOfBatchDeleteAPICalls |
Batch delete message requests |
BatchDeleteMessageCount |
|
|
Number of ChangeMessageVisibility API calls |
NumberOfChangeMessageVisibilityAPICalls |
Message visibility modifications |
ChangeMessageVisibilityCount |
|
|
Number of empty Receive API calls |
NumberOfEmptyReceives |
N/A |
||
|
Topic |
Number of publish requests per minute |
NumberOfPublishAPICallsPerTopic |
N/A |
|
|
Number of pushes |
N/A. Use the "Number of pushes per subscription" metric instead. |
Number of pushes |
TopicCountNew |
|
|
Push success rate (%) |
N/A. Use the "Subscription processing success rate" metric instead. |
Push success rate (%) |
TopicSuccessRateNew |
|
|
Subscription |
Number of pushes per subscription |
NumberOfPushPerSubscription You can view and monitor this metric at the subscription level. |
N/A |
|
|
Subscription processing success rate |
ProcessSuccessRatePerSubscription You can view and monitor this metric at the subscription level. |
N/A |
||
|
Age of the oldest message in a subscription |
AgeOfOldestVisibleMessagePerSubscription |
N/A |
||
|
Number of accumulated messages in a subscription |
NumberOfMessagesVisiblePerSubscription |
N/A |
||
|
User |
Maximum API QPS |
MaxApiQpsPerUser |
N/A |
|
|
API QPS usage |
WatermarkOfApiQps |
N/A |
||
|
Maximum console API QPS |
MaxConsoleApiQpsPerUser |
N/A |
||
|
Console API QPS usage |
WatermarkOfConsoleApiQps |
N/A |
||
Billing
The Cloud Monitor feature for Lightweight Message Queue (formerly MNS) is free of charge.
View metrics
Log on to the SMQ console. In the left-side navigation pane, click Cloud Monitor.
In the top navigation bar, select a region. Example: China (Hangzhou).
On the Cloud Monitor page, click the tab of the resources that you want to view and select a time range.
Create an alert rule
Go to the details page of the queue or topic that you want to manage and click the Cloud Monitor tab.
On the Cloud Monitor tab, click Create Alert Rule.
The Create Alert Rule panel in the Cloud Monitor console appears.
In the Create Alert Rule panel, configure the rule and notification settings as prompted. Then, click Confirm. For more information about the parameters, see Create an alert rule.