Skip to content
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

Closed
wants to merge 10 commits into from

Conversation

tpoon
Copy link

@tpoon tpoon commented May 9, 2014

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

  1. Enable in dashboard settings.

dashboard
2. Select the Datasource at the top of the page. This updates the datasource settings on all the graphs in the dashboard.

image
3. This works together with the filters. For example, the possible values for a filter are updated whenever you switch the data source.

@torkelo
Copy link
Member

torkelo commented May 10, 2014

Nice, this looks really useful. Will try to merge with the next couple of days.

@torkelo
Copy link
Member

torkelo commented May 29, 2014

Please sign the contributor license agreement http://grafana.org/docs/contributing/cla.html

@tpoon
Copy link
Author

tpoon commented May 29, 2014

Sure, I just submitted it.

…new dashboard, since it might not have a dashboard-level data source.
@edasque
Copy link

edasque commented Aug 19, 2014

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.

@torkelo
Copy link
Member

torkelo commented Aug 19, 2014

@edasque it is waiting for an overhaul of the filter system planed for v1.8.

@ruiqiding
Copy link

Can we specify row level or dashboard level data source from scripted dashboard please?

e.g.

return {
title: title,
height: height,
panels: panels,
datasource: 'DC_EU' //For example
};

@edasque
Copy link

edasque commented Sep 25, 2014

👍 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).

@torkelo torkelo closed this Jun 6, 2015
@torkelo
Copy link
Member

torkelo commented Jun 6, 2015

would like to have something like this, maybe via #1055

Dieterbe pushed a commit to Dieterbe/grafana that referenced this pull request Aug 11, 2015
@ying-jeanne ying-jeanne added the pr/external This PR is from external contributor label Apr 30, 2021
IevaVasiljeva pushed a commit that referenced this pull request Jul 14, 2022
* 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>
kminehart added a commit that referenced this pull request Jul 15, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/external This PR is from external contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants