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
Plugins: Include Azure settings as a part of Grafana config sent in plugin requests #79342
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.
Also adding @wbrowne as reviewer
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
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!
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
…ana into andreas/azure-plugin-config
Updates the Grafana config sent to plugins to include the Azure settings from the Grafana instance.
Note that these variables will only be included in requests to the following data sources by default:
grafana-azure-monitor-datasource
)prometheus
)grafana-azure-data-explorer-datasource
)mssql
)These variables can be read from the request context sent to a specified plugin by using the
ReadSettings
orReadFromContext
functions from grafana-azure-sdk-go.The plugins that receive the settings via context can be overridden via the
forward_settings_to_plugins
configuration variable in theini
file.