Skip to content

Commit 052c57f

Browse files
Merge pull request #289630 from jaganth/docs-editor/message-counters-1730417896
Update message-counters.md
2 parents 5a8b298 + 58b9b4b commit 052c57f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

articles/service-bus-messaging/message-counters.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ms.devlang: azurecli
1111
This article shows you different ways of getting message counts for a queue or subscription. Knowing the active message count is useful in determining whether a queue builds up a backlog that requires more resources to process than what has currently been deployed.
1212

1313
| Counter | Description |
14-
| ----- | ---------- |
15-
| ActiveMessageCount | Number of messages in the queue or subscription that are in the active state and ready for delivery. |
14+
| ----- | ---------- |
15+
| ActiveMessageCount | Number of messages in the queue or subscription that are in the active state and ready for delivery. This includes deferred messages. |
1616
| ScheduledMessageCount | Number of messages in the scheduled state. |
1717
| DeadLetterMessageCount | Number of messages in the dead-letter queue. |
1818
| TransferMessageCount | Number of messages pending transfer into another queue or topic. |
@@ -23,8 +23,7 @@ If an application wants to scale resources based on the length of the queue, it
2323
Another useful metric to consider for scaling is the time between when the latest message was sent and when it was processed, also known as "critical time". This is helpful for scenarios where a queue may have thousands of messages in it, but the processing is fast enough to keep up, giving a "critical time" of only a couple of seconds, which may be more than enough for something like an email sending endpoint. Third-party libraries like [NServiceBus](https://docs.particular.net/nservicebus/operations/opentelemetry#meters-emitted-meters) emit this and other useful metrics via OpenTelemetry.
2424

2525
> [!NOTE]
26-
> The messages that are sent to a Service Bus topic are forwarded to subscriptions for that topic. So, the active message count on the topic itself is 0, as those messages have been successfully forwarded to the subscription. Get the message count at the subscription and verify that it's greater than 0. Even though you see messages at the subscription, they are actually stored in a storage owned by the topic. If you look at the subscriptions, then they would have non-zero message count (which add up to 323 MB of space for this entire entity).
27-
26+
> The messages that are sent to a Service Bus topic are forwarded to subscriptions for that topic. So, the active message count on the topic itself is 0, as those messages have been successfully forwarded to the subscription. Get the message count at the subscription and verify that it's greater than 0. Even though you see messages at the subscription, they are actually stored in a storage owned by the topic. If you look at the subscriptions, then they would have non-zero message count, which contribute to the storage used by the topic.
2827
2928
## Using Azure portal
3029
Navigate to your namespace, and select the queue. You see message counters on the **Overview** page for the queue.

0 commit comments

Comments
 (0)