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 ability to override datasource for dashboards #407

Merged
merged 2 commits into from
Oct 20, 2021

Conversation

aallawala
Copy link
Contributor

@aallawala aallawala commented Oct 15, 2021

What this PR does:
This PR adds the ability to override the datasource used for dashboards via the _config.dashboard_datasource object.

We currently generate and import these dashboards as provisioned dashboards in Grafana and are unable to override the default datasource in the UI. The other alternative we have is to run a jq edit on top of the generated dashboards, but that's not ideal.
Which issue(s) this PR fixes:
Fixes #

Checklist

  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@aallawala aallawala requested a review from a team as a code owner October 15, 2021 19:23
@aallawala
Copy link
Contributor Author

Hi @pracucci, would you mind if we got your eyes on this please?

@pracucci pracucci merged commit 5a6b0e8 into grafana:main Oct 20, 2021
@aallawala aallawala deleted the aja_datasource_selector branch October 20, 2021 17:33
jmcarp added a commit to jmcarp/mimir that referenced this pull request Apr 25, 2022
Adapted from grafana/cortex-jsonnet#407.

Signed-off-by: Josh Carp <jm.carp@gmail.com>
pstibrany pushed a commit to grafana/mimir that referenced this pull request Apr 25, 2022
Adapted from grafana/cortex-jsonnet#407.

Signed-off-by: Josh Carp <jm.carp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants