In this article, we will take a detailed look at the end-to-end working scenario of setting up a Azure Service Bus Queue monitoring with a real time scenario.
Let's say you wish to monitor the Azure Service Bus Queue from your Azure subscriptions. As an administrator you wish to monitor the health of the Queue based on the following conditions and get notified on threshold violations.
- Warn, when there are more than 50 Scheduled Messages in the Queue or the Active Messages count in the Queue is less than 75
- Receive an error when the Message count is less than 100 and Queue Status is disabled
The first and foremost step in Queue Monitoring is to create an alarm and map the alarm for Queue monitor alerts. Click here to understand the process of creating an alarm.
- Log into the BizTalk360 application
- Click 'Monitoring' in the navigation panel
- Click the expand button against 'Manage Mapping' tab and select 'Queues'
- Select the Alarm name (see Creating an alarm) from the drop down for which you would like to associate the alerts
- Select the Azure Service Bus Queues tab
- Click New Queue to open the Add New Queue blade
- Enter the NameSpace ConnectionString and Queue Name
- Configure the conditions for threshold alerts under Queue Configurations.
While creating a rule in Queue monitoring, You can add up to 5 conditions for alert thresholds based on your needs. For each condition you add, you can create 2 sub-conditions (AND/OR).
- Click Save Configurations to create monitoring for the Queue
- The monitoring dashboard will reflect the health of the Queue
- In order to receive email notifications from BizTalk360 on the threshold violation alerts (and auto correction alerts), you need to configure the SMTP settings under BizTalk360 Settings. Follow the steps in this article to be able to configure the SMTP settings in BizTalk360. You will receive an email notification with the exact details of the status of the Azure Service Bus Queues.