Forum Discussion
Azure Resource Graph is now supported in Grafana's Azure Monitor data source
Azure Resource Graph (ARG) is a service in Azure that is designed to extend Azure Resource Management by providing efficient and performant resource exploration, with the ability to query at scale across a given set of subscriptions so that you can effectively govern your environment. By querying ARG, you can query resources with complex filtering, iteratively explore resources based on governance requirements, and assess the impact of applying policies in a vast cloud environment.
With Grafana 8.0, we are happy to announce that Azure monitor data source now supports querying Azure resource graph.
There is no extra configuration needed to use this service. Queries are written in the https://docs.microsoft.com/en-us/azure/governance/resource-graph/concepts/query-language and Azure Resource Graph query results are formatted as table data. If your credentials give you access to multiple subscriptions, then you can select them before entering the query.
6 Replies
- jtraxlerCopper ContributorIs this supported in the USGovArizona region. yet? I can use CLI fine but not the Grafana plug in.
- MattB5Copper Contributor
MJSharmathanks for this new functionality! Do you know if it is possible to use the access to ARG to populate variables in grafana?
My use case is to have a query list all our application insight resources in a drop down which then drives other queries to application insights.
- KayodePrince
Microsoft
MattB5 Yes, it is possible to use ARG to populate variables in Grafana. You can use the ResourceNames template variable shown in Azure Monitor template variables | Grafana Labs to get started.
For your use case, you would start with ARG to select the relevant App Insight resource, but run the subsequent query on the Azure Monitor Log Analytics workspace where your App Insights data is stored using the variable to filter on results matching the selected resource.
Note that App Insights has been deprecated as a data source in Grafana and you should run new queries against Azure Monitor Metrics and Logs.
Application Insights deprecation | Grafana Labs
Lastly, you can learn to migrate existing classic App Insights resources to workspace-based Application Insights resources here:
Migrate an Azure Monitor Application Insights classic resource to a workspace-based resource - Azure Monitor | Microsoft Docs- ale_phatCopper Contributor
In the screenshot, you have a query to the resource table of ARG. How would you query the same (or another table) in ARG in a variable?
I'm trying to query securityresources, but cannot find any documentation of how to properly query ARG in a variable. ResoruceNames() does not help because I have multiple subscriptions to query.