Monitoring processes in queues
You can monitor the handling processes for messages in queues using monitoring tools in the management console. These tools display diagnostic information as charts.
To view this information:
- In the management console
, select the folder the message queue belongs to. - Go to Message Queue.
- In the left-hand panel, select
Monitoring.
Sections with charts appear on the page.
Sending messages
Sent messages stats contains charts with information about sending messages:
-
Sent messages, count: Number of messages sent to the queue per unit of time.
-
Sent messages, size: The total size of messages sent to the queue per unit of time (in bytes).
-
SendMessage duration: SendMessage request execution time.
Displayed as percentiles. The lines on the chart correspond to the percentage of requests with the fastest execution time: 50%, 90%, 95%, and 99%.
-
SendMessageBatch duration: SendMessageBatch request execution time.
Displayed as percentiles. The lines on the chart correspond to the percentage of requests with the fastest execution time: 50%, 90%, 95%, and 99%.
-
SendMessage errors: Number of
SendMessageandSendMessageBatchrequest execution errors.
Receiving messages
Received messages & processing stats contains charts with information about receiving and processing messages:
-
Received messages, size: The total size of messages received from the queue per unit of time (in bytes).
-
Received messages, count: Number of messages received from the queue per unit of time.
-
Messages in flight, count: Number of messages received by recipients but not deleted from the queue (that are still within the visibility timeout window).
-
ReceiveMessages requests: Total number of ReceiveMessage requests and number of requests with empty responses.
An empty response to a request means that no messages available for reading have appeared within the specified waiting time (the
WaitTimeSecondsattribute). -
ReceiveMessages duration:
ReceiveMessagerequest execution time.Displayed as percentiles. The lines on the chart correspond to the percentage of requests with the fastest execution time: 50%, 90%, 95%, and 99%.
-
ReceiveMessage errors: Number of
ReceiveMessagerequest execution errors. -
Message processing on client duration: Message processing time spent by the recipient.
Calculated as the difference between the time when the message was received using ReceiveMessage and when it was deleted using DeleteMessage or DeleteMessageBatch.
Displayed as percentiles. The lines on the chart correspond to the percentage of messages with the fastest handling time: 50%, 90%, 95%, and 99%. -
Receive attempts per message, count: Number of registered attempts to receive a message.
The value increases if a message was received by the recipient but returned to the queue after the visibility timeout expired. The lines on the chart correspond to the number of receive attempts:
- 0-1
- 2
- 3-5
- More than 5
Deleting messages
Delete messages stats contains charts with information about deleting messages:
-
Deleted messages, count: Number of messages deleted from the queue in a unit of time using the DeleteMessage or DeleteMessageBatch method.
-
DeleteMessage duration:
DeleteMessagerequest execution time.Displayed as percentiles. The lines on the chart correspond to the percentage of requests with the fastest execution time: 50%, 90%, 95%, and 99%.
-
DeleteMessageBatch duration:
DeleteMessageBatchrequest execution time.Displayed as percentiles. The lines on the chart correspond to the percentage of requests with the fastest execution time: 50%, 90%, 95%, and 99%.
-
DeleteMessage errors: Number of
DeleteMessageandDeleteMessageBatchrequest execution errors. -
Purged messages, count: Number of messages purged from the queue in a unit of time using the PurgeQueue method.
Overall queue metrics
Overall queue stats contains charts with general information about processes in queues:
-
Messages in queue, count (metric name:
queue.messages.stored_count): Number of messages currently enqueued. Measured inpcs(pieces). -
Age of oldest message in queue (metric name:
queue.messages.oldest_age_milliseconds): Retention time of the oldest message in the queue. The metric name is deprecated, and themillisecondssubstring does not align with the current units of measure. Currently, the metric is measured in seconds (s). -
Message reside duration (metric names:
p99for the 99th percentile,p95for the 95th percentile,p90for the 90th percentile,p50for the 50th percentile): Enqueued message processing time. Measured inms(milliseconds).Calculated as the difference between the time when the message was received using ReceiveMessage and when it was deleted using DeleteMessage or DeleteMessageBatch.
Displayed as percentiles. The lines on the chart correspond to the percentage of messages with the fastest handling time: 50%, 90%, 95%, and 99%.