question

AmirGolan-2717 avatar image
0 Votes"
AmirGolan-2717 asked MayankBargali-MSFT answered

Service Bus alerts per subscription number of messages

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

Hi @AmirGolan-2717

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.