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
Add support for a dashboard-level datasource setting #404
Conversation
Nice, this looks really useful. Will try to merge with the next couple of days. |
…il the new filter options have been loaded
…il the new filter options have been loaded
…lts as filter options
…il the new filter options have been loaded
Please sign the contributor license agreement http://grafana.org/docs/contributing/cla.html |
Sure, I just submitted it. |
…new dashboard, since it might not have a dashboard-level data source.
… add scrolling to the results list.
I'd love for this to be merged since Filters only work on the default datasource. As a result, we can't use it on any dashboard that isn't based on the default DS. |
@edasque it is waiting for an overhaul of the filter system planed for v1.8. |
Can we specify row level or dashboard level data source from scripted dashboard please? e.g. return { |
👍 especially if it includes support for templating at the dashboard level (you could also make it at the row or even graph level I guess by adding datasource variable to the datasource graph dropdown). |
would like to have something like this, maybe via #1055 |
* Fix: Choose Lookup params per auth module Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Prefer pointer to struct in lookup Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Use only login for lookup in LDAP Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: use user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> fix remaining test fix nit picks (cherry picked from commit 09ca54d4665583b5648fea5726a19e0b58df4ec0) * fix integration tests (cherry picked from commit 16c3077bb39f41acacbef4b13c65c7c907c54de7) * Release: Bump version to 8.3.9 (#403) * Change bump-version.yml * "Release: Updated versions in package to 8.3.9" Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com> * Update yarn.lock Co-authored-by: jguer <joao.guerreiro@grafana.com> Co-authored-by: Grot (@grafanabot) <43478413+grafanabot@users.noreply.github.com>
* Fix XSS in runbook URL (#383) * "Release: Updated versions in package to 8.3.8" (#385) * Fix: Choose Lookup params per auth module v8.3.x (#401) * Fix: Choose Lookup params per auth module Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Prefer pointer to struct in lookup Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Use only login for lookup in LDAP Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: use user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> fix remaining test fix nit picks * update lock * fix integration tests * [v8.3.x] Merge 'release-8.3.9` branch (#404) * Fix: Choose Lookup params per auth module Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Prefer pointer to struct in lookup Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: Use only login for lookup in LDAP Co-authored-by: Karl Persson <kalle.persson@grafana.com> Fix: use user email for ldap Co-authored-by: Karl Persson <kalle.persson@grafana.com> fix remaining test fix nit picks (cherry picked from commit 09ca54d4665583b5648fea5726a19e0b58df4ec0) * fix integration tests (cherry picked from commit 16c3077bb39f41acacbef4b13c65c7c907c54de7) * Release: Bump version to 8.3.9 (#403) * Change bump-version.yml * "Release: Updated versions in package to 8.3.9" Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com> * Update yarn.lock Co-authored-by: jguer <joao.guerreiro@grafana.com> Co-authored-by: Grot (@grafanabot) <43478413+grafanabot@users.noreply.github.com> * "Release: Updated versions in package to 8.3.10" (#409) * Update grabpl * update grabpl * CI: Update `grabpl` version - remove `--no-pull-enterprise` flag (#47013) * Update grabpl version * Sign drone * Remove --no-pull-enterprise flag * Sign drone * Update grabpl * update drone, cherry-pick some ci updates * update PR pipeline Co-authored-by: George Robinson <george.robinson@grafana.com> Co-authored-by: Grot (@grafanabot) <43478413+grafanabot@users.noreply.github.com> Co-authored-by: Jguer <joao.guerreiro@grafana.com> Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com> Co-authored-by: Kevin Minehart <kmineh0151@gmail.com> Co-authored-by: Dimitris Sotirakis <sotirakis.dim@gmail.com>
This adds an optional "Datasource" setting at the Dashboard level that overrides the individual graph-level settings. We have found this to be very helpful for re-using the same dashboard across multiple data sources.
Usage
2. Select the Datasource at the top of the page. This updates the datasource settings on all the graphs in the dashboard.
3. This works together with the filters. For example, the possible values for a filter are updated whenever you switch the data source.