The latest code for this project can be found on
GitHub
Monitor Azure Service Bus with Azure Functions and Application Insights
Azure Service Bus is a cloud-based Messaging as a Service offering. This Azure Function App is a sample showing how to monitor an Azure Service Bus leveraging Application Insights.
It will iterate through each queue and topic/subscription, creating custom metrics of Active Message count and Dead Letter Message count for each.