Jump to content

[ServiceBus] Using Azure Managed Grafana for Azure Service Bus


Recommended Posts

Guest SungGun_Lee
Posted

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.

 

 

433x39vv2.png.650729ee76c76a396b08f63b6cbe3f9b.png

 

433x68vv2.png.37d0a98599725d161562724e95d3f9ea.png

 

② Create Grafana Workspace

 

 

501x183vv2.png.aa2379e44a84f378953c230af7720629.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.

 

 

723x208vv2.png.dd49d76f0f8f4d9cd343dd7de449b86b.png

 

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

 

 

mediumvv2px400.png.73d9e33b935b61d896484e24c7fbe144.png

 

⑥ Search for Azure Monitor as below.

 

 

mediumvv2px400.jpg.e46a471cffb493016d4aed958138a0f7.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.

 

 

mediumvv2px400.png.1830856916ab139193b6e38b7956887d.png

 

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

 

 

mediumvv2px400.png.0e7609c4594f8257bbd7ec92898442f6.png

 

⑨ Add a new panel.

 

 

mediumvv2px400.png.af1ca08d2b536043fc6b09c51bf5c643.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.

 

 

mediumvv2px400.png.d65f70b6013b61d02e9624a4ce33ce13.png

 

⑪ Select the Service Bus NameSpace as your scope

 

 

580x145vv2.png.43abb98a6d3b857211ce752d31dd31b3.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.

 

 

mediumvv2px400.png.92f75642a035071c7ff0c95b674cdb48.png

 

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

 

 

mediumvv2px400.png.ad4f77b69620f4b10df351901bdf44da.png

 

 

 

3.1 Adding Variables

 

① Go to Dashboard setting on the right top corner.

 

mediumvv2px400.png.a6f0bfb204ebff035342021f19cd6363.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

 

mediumvv2px400.png.d0a917ab520844630f369d29ef4558f2.png

 

- In the preview, you should be seeing your Resource Names and Groups that are associated to the Service Bus Namespace

 

mediumvv2px400.png.6423bcdd997277750133e6e436dea08e.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.

 

 

mediumvv2px400.png.c0995646862aa4a1a48ee6ef0a6a556d.png

 

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

 

 

mediumvv2px400.png.79362c580e3be1eed28b32c498da52a0.png

 

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

 

 

mediumvv2px400.png.4fc1cf40aeab5eb67bb60ab7cda87352.png

 

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

 

 

mediumvv2px400.png.d6fe253dc33346b88d438d285a097174.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.

 

 

mediumvv2px400.png.a8efb303866588af230f60c064fae08d.png

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...