azure-monitor-datasource icon indicating copy to clipboard operation
azure-monitor-datasource copied to clipboard

Query Templating with Variables for the Azure Monitor Service

Open cronologi opened this issue 5 years ago • 2 comments

Is it possible to query for resources without specifying the resource group? It doesn't seem to work for me. Is there a workaround, or something similar that I could implement? I would like to have a list of my app service plans which I can then use in a Log Analytics query and then generate panels for each app service plan in a dashboard - dynamically.

I do not want the query to be limited for a resource to a resource group. Is it possible to query multiple resource groups and get (for example), all of the app service plans that I have in my different resource groups?

Something like this: ResourceNames(aNamespace)

This is where I was looking for the solution, but could not find what I was looking for. https://grafana.com/docs/features/datasources/azuremonitor/#templating-with-variables-for-the-azure-monitor-service

cronologi avatar Jul 01 '19 13:07 cronologi

+1 for this.

I'm trying to look at failed request across multiple app insights instances all in different resource groups.. something that should be relatively easy.

For example

https://management.azure.com/subscriptions/xxxxxx/resources?$filter=resourceType EQ 'Microsoft.Insights/components'&api-version=2018-05-01

I am going to bump heads with @ewannoble and see if we have a crack at implementing something

chelnak avatar Jul 10 '19 20:07 chelnak

WIP here ->

https://github.com/chelnak/azure-monitor-datasource/commit/e18b1b3f522a7d7d6374905ccbde8c7962776609

chelnak avatar Jul 10 '19 20:07 chelnak