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

Import of dashboard using templated datasource does not respect template datasource usage #5673

Closed
1 of 3 tasks
tcolgate opened this issue Jul 28, 2016 · 3 comments
Closed
1 of 3 tasks
Labels
area/dashboard type/bug version/3 for issues related to version 3 version/4 for issues related to version 4 version/5 for issues related to version 5

Comments

@tcolgate
Copy link

  • I'm submitting a ...
  • Bug report
  • Feature request
  • Question / Support request: Please do not open a github issue. Support Options

Please include this information:

  • What Grafana version are you using?
    3.1
  • What datasource are you using?
    Prometheus (applies generally though)
  • What OS are you running grafana on?
    Linux
  • What did you do?
    • Create a dashboard
    • Add a template variable called $datasource, that selects Prometheus datasources
    • Create a graph, set datasource to $datasource
    • export the dasboard
    • import the dashboard to another grafana
    • I am forced to pick a datasource, so pick one
  • What was the expected result?
    • ideally the graphs on the imported dashboard would still use $datasource
  • What happened instead?
    • They graph datasources are overwritten to use the datasource I selected on import
@tcolgate tcolgate changed the title Import of dashboard using templated datasource is broken Import of dashboard using templated datasource does not respect template datasource usage Jul 28, 2016
@phyber
Copy link

phyber commented Jan 15, 2018

Just stumbled upon this when trying to automate the deployment of Grafana using pre-made dashboards.

  • Grafana 4.6.2
  • Prometheus datasource
  • Linux
  • Procedure
    • Created dashboard in a staging Grafana
    • Exported dashboard
    • Imported dashboard in a different Grafana via HTTP API (as used by the Puppet grafana module)
    • Dashboard is empty, complaining about the datasource.

Attempting to import manually via the UI instead of the HTTP API has Grafana prompt me for the datasource. In both the staging and other Grafana instances the Prometheus datasource is simply named prometheus and inspecting the JSON suggests that the __inputs section contains the correct information.

Expected behaviour:

  • That Grafana can actually use its own dashboard exports.

@megakoresh
Copy link

megakoresh commented Mar 27, 2019

Hit this bug with Grafana 5.2.3 using the same method as @phyber

This is a blocker for autoprovisioning.

@hugohaggmark hugohaggmark added version/3 for issues related to version 3 version/4 for issues related to version 4 version/5 for issues related to version 5 labels Nov 11, 2020
@hugohaggmark
Copy link
Contributor

Closing this issue as I can't repro it on Grafana v7.4.0-pre (db637a3) using the Export for sharing externally switch and we're trying to limit open GitHub issues in order to better track planned work and features.

image

Thank You to you for taking the time to create this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard type/bug version/3 for issues related to version 3 version/4 for issues related to version 4 version/5 for issues related to version 5
Projects
None yet
Development

No branches or pull requests

5 participants