We have quite a few Azure service-bus topics/queues in production. Any given topic has a MAX SIZE and its possible to hit that limit due to various reasons no related to load viz. ununsed subscriptions attached to the topic etc.
We had more than one outages when a topic hit it's size limits as we had ununsed subscriptions. We are looking for fundamental monitoring where
- If the size of topic > X% of MAX SIZE we get an email / notification.
- Any topic in production namespace should automatically be added to
monitoring. It's possible for dev to forget to add the monitoring
when adding new topic to the namespace.
While 2. is good to have but having just 1. should also be fine.
Azure service bus has "Metrics" in preview currently and there are bunch of metrics we can setup to get alerted on. It looks like it is in very early stages and even above requirement cannot be fulfilled.
Am I missing something or I need to build custom monitoring using Azure functions / Logic Apps by invoking REST APIs exposed at - https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-supported-metrics?redirectedfrom=MSDN#microsoftservicebusnamespaces
https://www.servicebus360.com/ is selling the above functionality but my requirement is very rudimentary.