In this article:
- Configure monitoring for Queues in ServiceBus360
- What are the different parameters you can use to monitor the Queue?
- In-depth view of Monitoring Dashboard
Azure Service Bus is a cloud-based messaging platform for connecting applications, services, and devices irrespective of their locations. Applications running on Azure, on-premise systems, or both, can communicate with each other, and numerous applications can be accessed with minimum response time. With ServiceBus360, monitoring Azure Service Bus becomes a lot easier. ServiceBus360 is a simple platform to manage your Azure Service Bus namespaces. It provides efficient operations capabilities on any service bus resource like Queues, Topics, Relays and Event Hubs. With ServiceBus360 it is easy to configure alarms for various metrics and get notified in case of violations and take necessary corrective actions. An enterprise messaging solution may contain multiple Service Bus resources being used. These resources from various categories can be grouped together to make more meaningful monitoring.
Configure monitoring for Queue in ServiceBus360
To configure monitoring, the user must create alarms and then associate Queues to the alarms.
Create an alarm:
- From the Home Dashboard, click Manage Namespace button of a namespace for which you want to create the alarm. The namespace should be of type ‘Messaging’.
- Click Alarms from the menu on the left
- Click the Add Alarm button to open the Add Alarm blade
- Enter Alarm Name
- Enter a summary for the alarm (This is optional)
- Click the Next button to navigate to the ‘Threshold Violations’ page
- Click ‘Alert on threshold violation’ to turn on the feature. You can configure alerts for threshold violations in this section.
- Click the Next button to navigate to the ‘Health Monitoring’ page
- Click ‘Enable Health Monitoring’ to turn on the feature. Enabling health monitoring allows users to get regular alerts on the status of the resource.
- Click Next to navigate to the ‘Notifications Channels’ page. By default, a notification email is sent from ServiceBus360 to the registered email ID (customizable) when the alarm is triggered due to a violation. You can also configure additional notification channels.
- Click the Save button to create the alarm
Associate the newly created alarm to a Queue
- Click Queues from the menu on the left menu
- Click the Monitoring icon on the right for the Queue you want to associate the alarm
- The Select Alarm dropdown on the top left lists all the configured alarms. Select the alarm you want to associate with this Queue from the dropdown
- By default, the parameters of the Queue are displayed. To monitor the status of the Queue, click the Enable Monitor switch for the property ‘Status’. Click the Edit button to change the other property/metrics in the Queue and set thresholds values
- Click Save when doneClick the "Do not Monitor" button to remove the monitoring configurations for the entity from the particular alarm.
What are the different parameters you can use to monitor the Queue?
In state-based monitoring, if the state of the messaging entity does not match the expected state, then the alarm is triggered.
State of the Queues
Active: The status of the messaging entity is active
Disabled: The status of the messaging entity is disabled
SendDisabled: The sending status of the messaging entity is disabled
ReceiveDisabled: The receiving status of the messaging entity is disabled
In value-based monitoring, the parameters can be set to trigger an alarm if the current value of the parameter does not match the desired condition. The following parameters are available for configuring.
Size in Bytes - Size of the Topic in bytes
Active Message Count - Number of active messages in the entity
Dead Letter Message Count - Number of dead-letter messages in the entity
Scheduled Message Count - Number of scheduled messages in the entity
Transfer Dead Letter Message Count - Number of messages dead-lettered
Transfer Message Count - Number of messages transferred to another entity
In-depth view of Monitoring Dashboard
The Monitoring Dashboard shows a quick view of all the entities associated with an alarm. When all the parameters of the entity configured are in the desired state, then the status of the entity is Healthy and color-coded green. If even one of the parameters violates the defined threshold value or expected state, then the status of the entity is set to Warning or Error depending on the violation.
- Click Monitoring Dashboard from the left menu bar
- Click the Select Alarm drop-down box. All the alarms are listed down
- Select an alarm from the list. All the entities associated with the alarm are displayed
- If an entity is in Warning or Error state, click on the Issues icon in the extreme right of the table to view the errors in detail
- You can also Navigate to the Monitoring page of that entity by clicking on the entity name
- If an entity associated with an alarm has been deleted from the namespace, then the alarm is orphaned. To removed orphaned alarms, click the Remove Orphaned button on the top right.