Service Bus alerts per subscription number of messages

Amir Golan 1 Reputation point
2021-06-27T14:52:09.203+00:00

Hi,
I would like to set an alert on a subscription and not on topic.
In alerts there is an alert option "Count of active messages in a Queue/Topic."

I would like that same one not on topic but on subscription.
If I have one subscription that has a high count of active messages I would like to know.
Even if another subscription has a low count of active messages.

Thanks

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
542 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 67,986 Reputation points
    2021-07-01T04:40:56.683+00:00

    Hi @Amir Golan

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Unfortunately the monitoring the alert condition are only at the Entity level i.e. Queue/topic therefore you will not see any condition at the subscription level when you create the alert rule as mentioned in the metric section for Metric Name "Active Messages" and the Dimensions are "Entity name".

    Please feel free to raise a feature request on UserVoice to support this, if this is something that you would want to see in service bus monitoring.

    Alternatively, if feasible you need to create the middleware to monitor the subscription active message count using service bus SDK and use custom event grid for event based scenario or middleware have the logic for further processing events based on your business logic.

    0 comments No comments