[ServiceBus] Using Azure Managed Grafana for Azure Service Bus

This post has been republished via RSS; it originally appeared at: Microsoft Tech Community - Latest Blogs - .

 

Table of Content 
  • What is Azure Managed Grafana?
  • Why use Azure Managed Grafana with Azure Service Bus?
  • Setup and Configuration
    • Adding variables
  • Conclusion

 

1. What is Azure Managed Grafana?

Azure Managed Grafana is a data visualization platform built on top of the Grafana software by Grafana Labs. This is a bit different to the Grafana that you download from the grafana.com in the sense of the platform as Azure Managed Grafana is deployed from Azure Portal.
 
Therefore, you can control and configure the settings of Azure Managed Grafana from the Azure Portal such as limiting access or permission via users by using Azure Active Directory from Access Control (IAM).
 
For more details, please visit aka.ms/azuremanagedgrafana

 

2. Why use Azure Managed Grafana with Azure Service Bus?

You can see Service Bus metric on the Portal as well. However, if you wanted to see various namespaces metric at once, you would need to open multiple web pages across your monitor or monitors.
 
By using Azure Managed Grafana makes things easier to see ServiceBus Metric through one single dashboard. Additionally, Azure Managed Grafana allows filtering via variables. With these filters you can easily control the variables and be able to see different metrics of Resource Groups or Names in one dashboard without having to go back and forth between web pages. This documentation will explain how to set the variables in the later part of the documentation.
 
Lastly, the integration with Azure is so easy. You don’t have to go through the hassle of finding the endpoint and so forth. Since Azure Managed Grafana does all that for you. Also, by using the Azure Managed Grafana, the built-ins are all there for you to use.
 
In conclusion, using Azure Manage Grafana with Service Bus will make your monitoring much easier and flexible to your taste!

 

3. Setup and Configuration

① Search Azure Managed Grafana on the Azure Portal search bar.

1.png

2.png


② Create Grafana Workspace

3.png


③ Once the resource has been fully deployed, go to the resource.

④ View Overview of the resource that you’ve just created and click on the Endpoint.

4.png


⑤ You will be seeing the Grafana dashboard and you need to complete the source.

5.png


⑥ Search for Azure Monitor as below.

6.jpg


⑦ Select the subscription that you need to setup on the default subscription.
After press Save & Test and make sure you get Green Check box with successful connection.
Remember the name as this will be your Data Source.

7.png


⑧ Now you can start creating your dashboard by going to the Dashboard menu.

8.png


⑨ Add a new panel.

9.png


⑩ Make sure to set up the data source to Azure configuration setup earlier and select the resource you’d like to use as you will be able to see all the Resource Groups you own in the Azure Account.

10.png


⑪ Select the Service Bus NameSpace as your scope

11.png


⑫ After selecting the resource, please choose the metric, aggregation and Time grain as you wish.
Make sure to give the title to this chart on the left Panel Options and save the Panel.

12.png


⑬ Once this is done, you will be able to see your Incoming Request metric on your dashboard.

13.png

 

3.1 Adding Variables

① Go to Dashboard setting on the right top corner.
14.png
② Go to Variables on the left menu and add new variables.

③ Change the query to the variable name you’d like.
- You need to add Resource Name and Resource Group
15.png
- In the preview, you should be seeing your Resource Names and Groups that are associated to the Service Bus Namespace
16.png
Make sure that you add microsoft.servicebus/namespaces when adding the Resource Name.
④ Once you’ve set up the variables in the dashboard as below you need to add the variable to the metric as well so that it will change as the variable selected.

17.png

⑤ Select the metric and go to edit and press the resource in A query.

18.png

Go to Advanced, by toggling down the arrow. Add the variable as the name you’ve made with the $.

19.png

And make sure the Metric, Aggregation and Timegrain are all configured as they do get rested.

20.png

 

4. Conclusion

You can set your Dashboard as you like and stream the metric you wish on the Grafana dashboard. Also, it doesn’t just have to be Service Bus only.
You can have Storage Metric or other products along with other metrics in one dashboard.
Hope this setup documentation helped you out with setting up Azure Service Bus Metrics on Azure Managed Grafana.

21.png

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.