Overview
Information in this article is related to using CloudMonix for monitoring Azure Event Hubs.
The article covers the following topics:
common use cases where CloudMonix can help with monitoring and automation
what is needed to connect to and monitor Azure Event Hubs
what metrics CloudMonix tracks, visualizes and monitors
Why use CloudMonix for Azure Event Hubs?
Popular usages of CloudMonix include the following examples:
Tracking the incoming and outgoing rates of events in Event Hubs
Configuration
Azure Event Hubs monitoring can be configured either via Setup Wizard or by using the “Add New” button in the dashboard. It’s highly recommended to use Setup Wizard when configuring permissions for the first time, as that will simplify authorization. Learn more about authorizing with Setup Wizard here.
CloudMonix requires Shared Access Key with Manage claims on the Azure Event Hubs Namespace level to connect to and monitor Event Hub consumer groups. For Statistical metrics, connection thru ARM authorization is required.
Metrics
Every diagnostic data point that CloudMonix retrieves from the monitored resource is considered a metric in CloudMonix. Refer to the Metrics article to learn more about metrics in general.
It’s important to understand that there’s a certain delay in data provided by Azure Management API, therefore metric values have to be evaluated over longer periods of time and ideally, in correlation with other data points (e.g. metrics from other resources).
CloudMonix provides a default template for monitoring Azure Event Hubs:
The metrics can be added, removed and customized in the Metrics tab of the Azure Event Hubs resource configuration dialog.
Most Azure Event Hubs metrics require manually specifying the target Consumer Group. It’s also possible to track those metrics per partition. Both values can be provided in the metric configuration screen.
Built-in Azure Event Hubs Metrics
ResourceStatus
Identifies the last state of the monitored service. This is a critical metric that is captured for most types of resources that CloudMonix tracks. It is used for Uptime reports and should not be removed.
Data Type: string
Possible values: Ready, Down, Unknown
Included in sample profile: yes, tracked as a metric called Status
Included in default alerts: yes, as an alert called ResourceOutage
Statuses are determined according to the following rules:
Ready - Azure Managemet API reports the hub status as Active
Down - Azure Managemet API reports the hub status as other than Active
Unknown - there was an error when trying to retrieve the data
AzureServiceBusEventHubEndSequenceNumber
Tracks the last event sequence number for the specific partition or across all partitions.
Requires specifying a target consumer group.
Data Type: long
Included in sample profile: no
Included in default alerts: no
AzureServiceBusEventHubIncomingBytesPerSecond
Tracks the approximate incoming rate of events (in bytes per second) for the specific partition or across all partitions.
Requires specifying a target consumer group.
Data Type: int
Included in sample profile: yes, tracked as a metric called Ingress
Included in default alerts: no
AzureServiceBusEventHubOutgoingBytesPerSecond
Tracks the approximate outgoing rate of events (in bytes per second) for the specific partition or across all partitions.
Requires specifying a target consumer group.
Data Type: int
Included in sample profile: yes, tracked as a metric called Egress
Included in default alerts: no
AzureServiceBusEventHubSizeInBytes
Tracks the approximate size, in bytes, of the specific Event Hubs partition or across all partitions.
Requires specifying a target consumer group.
Data Type: int
Included in sample profile: yes, tracked as a metric called Size
Included in default alerts: no
AzureServiceBusEventHubLastEnqueuedSecondsAgo
Tracks time elapsed from when the last event was enqueued for the specific partition or across all partitions.
Requires specifying a target consumer group.
Data Type: int
Included in sample profile: no
Included in default alerts: no
AzureServiceBusHubStatistics
Tracks various metrics such as Size, Messages, Throughput, Requests, and Errors from Azure Monitoring APIs. More information is available here.
Requires specifying a target consumer group.
Data Type: decimal
Included in sample profile: no
Included in default alerts: no
Alerts
Users can create alerts based on changes in any value tracked by CloudMonix (including custom metrics). Each resource template includes alerts which are suitable for a given resource. The predefined alerts for Azure Event Hubs are listed in the Metrics section. Refer to the Alerts article to learn more about alerts in general.
Alerts are available during the Trial period or in Professional and Ultimate plans only.