Skip to content

mukaibot/servicebus-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ServiceBus Monitoring

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.

Getting started

You need the following:

  • At least one queue
  • A SAS token with the "Management" access right
  • Credentials to an SMTP server

Using the app

  1. If you're building from source, copy the sample App.config.sample to App.config
  2. If you're using the MSI, copy ServiceBusMonitoring.exe.config.sample to ServiceBusMonitoring.exe.config
  3. Update the values in the configuration file as necessary
  4. Run ServiceBusMonitoring.exe and check that everything is healthy (perhaps create a dummy queue, and send some sample messages to test notification)
  5. Use Task Scheduler or similar to run this on a regular basis

Contributing to this project

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.

About

Monitor the queue size of your ServiceBus queues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages