New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AzureMonitor: Support querying subscriptions and resource groups in Azure Monitor Logs #34766
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
...plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/NestedRows.tsx
Show resolved
Hide resolved
...c/app/plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/utils.ts
Outdated
Show resolved
Hide resolved
resourcecontainers | ||
| where type == "microsoft.resources/subscriptions" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be nice if microsoft developed a js library for building queries :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This will be a major improvement for the users
53c51d5
to
b2e0aa4
Compare
b2e0aa4
to
8e7b460
Compare
What this PR does / why we need it:
Adds support for Azure Monitor Logs queries that target Subscriptions and Resource Groups directly, rather than only a singular resource. This lets you, for example, graph all virtual machines in a resource group with a single query, which is pretty cool!
It turns out this was a lot easier than initially thought - the complication was just making sure the UI was still good when it didn't have a full resource URI
Which issue(s) this PR fixes:
Fixes #34482