ServiceBus360 allows you to seamlessly monitor various things in your Event Hubs like the expected state of the Event Hub and other partition level parameters.
In this section, we will see how to set up monitoring on the Event Hub at the partition level. Partitions are one of the key differentiation in the way that the data is stored and retrieved compared to other Service Bus technologies like Queue and Topics. The traditional Queue and Topics are designed based on the “Competing Consumer” pattern in which each consumer attempts to read from the same queue, whereas Event hubs are designed based on “Partitioned consumer pattern”. The single lane queue model will ultimately result in scale limits, hence event hubs use partitioned consumer pattern to achieve the massive scale required.
It's important to make sure the partitions are healthy and running in an expected state to avoid any downtime sending messages to external systems. ServiceBus360 assists administrators by monitoring the Event Hubs against an expected status. For instance, you want to monitor the Event Hubs and want to be alerted when the status is not Active, you can easily set up monitoring for this by setting the expected state to Active. By doing this, the system will trigger an alert as soon as the send port status is not Active.
One of the important features of ServiceBus360 monitoring is, it allows you to set up monitoring for any desired state, not necessarily just healthy running state always. Most of the monitoring solutions will only monitor for a healthy state. When it comes to Service Bus, it's fairly normal; for example, you have some Event Hubs in not necessarily just healthy running state always. Most of the monitoring solutions will only monitor for a healthy state. When it comes to Service Bus, it's fairly normal; for example, you have some Event Hubs in SendDisabled state for some reason and you do not want someone to accidentally start it. If you wanted to achieve this in general purpose monitoring solutions, it may involve a considerable amount of custom development, whereas in ServiceBus360 it's out-of-the-box.
When you are configuring monitoring for Event Hubs, once you select the Event Hub, you can then select one of the expected states from the drop down.
To configure monitoring, the user must create alarms and then associate Event Hubs 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 ‘Event Hub’.
- 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 an Event Hub
- Click Event Hubs from the menu on the left menu
- Click the Monitoring icon on the right for the Event Hubs 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 Event Hub from the dropdown
- Click the Monitor Partitions button to open the Event Hub Partitions blade
- Select the parameters that you wish to monitor. You can choose to monitor parameters like Incoming Bytes Per Second, Outgoing Bytes Per Second, and Size In Bytes.
- Click Add to Monitor button to add the selected parameters to the alarm
- Click the Edit button to change the threshold values. Using this option, you can set the warning and error threshold values to the respective parameters.
- Click Save when done. Click the "Do not Monitor" button to remove the monitoring configurations for the entity from the particular alarm.