A .NET 4.5 console app to monitor the number of messages in your ServiceBus queues. You nominate a threshold (ie 10 messages), and receive an email if there are more messages than this in the queue.
You need the following:
- At least one queue
- A SAS token with the "Management" access right
- Credentials to an SMTP server
- If you're building from source, copy the sample
App.config.sample
toApp.config
- If you're using the MSI, copy
ServiceBusMonitoring.exe.config.sample
toServiceBusMonitoring.exe.config
- Update the values in the configuration file as necessary
- Run
ServiceBusMonitoring.exe
and check that everything is healthy (perhaps create a dummy queue, and send some sample messages to test notification) - Use Task Scheduler or similar to run this on a regular basis
Pull requests are welcome. I have tried to make the alerting functionality extendable, because a lot of people use things like Slack, HipChat etc. If you'd like to contribute a new Alerter, please implement the IAlerter
interface in the Alerters
namespace.