Forum Discussion
Azure Resource Graph is now supported in Grafana's Azure Monitor data source
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
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.
- KayodePrinceFeb 18, 2022
Microsoft
ale_phat I'm not sure I completely understand your question but you can use the Subscriptions() query to return a list of subscriptions and you can use custom variable that contains the values of all tables that you want to choose from to run your query.
- rushirgSep 26, 2022Copper ContributorKayodePrince how do one get rid of the azure portal hyperlinks from the query results?