This document will walk you through the steps to visualize uberAgent metrics collected in Azure Monitor through Grafana dashboards. Example Grafana dashboard definitions are provided to easily get started with the metric visualizations.
- Creating Azure Log Analytics workspace
- Integrating uberAgent with Log Analytics workspace
- Configuring Grafana with Log Analytics workspace
Creating Azure Log Analytics workspace
Integrating uberAgent with Log Analytics workspace
- Go to App Registrations in Azure and create a new Registration.
- Get Application (client) ID from the Overview Page.
- In Manage → Certificates & secrets → Client secrets, Add a new client secret. Save the Value (Client secret)
- In Log Analytics workspace → Access Control → Role assignments, search for the App registration and give Contributor role to it.
- Select "Connections" > "Data sources" > "Add new data source"
- Find and select the "Azure Monitor" data source type
- Fill the data source name and authentication information saved during App registration.
- Click "Save & test"
- Navigate to "Dashboards"
- Click on the "New" button and then select "Import"
- Browse for and select the dashboard definition (.json file) to import
- Select the Azure Monitor data source configured above
- Click "Import"
- The newly imported dashboard will then open.
- In the selectors at the top, select the Subscription and the Log Analytics workspace. The data queries should then succeed and you should see the charts populated with data. If needed, you can adjust the selected time window.
- After the Subscription and Workspace is selected, the dashboard can be saved by checking the below box to persist the selected values.