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: select plugin route from cloudname #27273
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.
Left a comment
var azureMonitorRoute *plugins.AppPluginRoute | ||
for _, route := range plugin.Routes { | ||
if route.Path == "azuremonitor" { | ||
if strings.Contains(route.Path, cloudName) { |
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.
Shouldn't it still be equals here?
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.
Yes, I think somehow I confused myself when looking at the plugin json and where cloudName comes from in the context of the different services.
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
Given the referenced issue is making a request to the backend and not going through the data proxy this should make it work better 👍
* AzureMonitor: select plugin route from cloudname fixes grafana#27243
What this PR does / why we need it:
For the Azure Monitor service the Azure Monitor data source, selects the plugin route.
Which issue(s) this PR fixes:
maybe fixes #27243
Notes for Reviewer
#27243 (comment) explains this