Skip to content

Importing new dashboards #819

Answered by cgrinds
luddite516 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the details @luddite516, I understand the bug now.
When exporting, Grafana also exports each dashboards's id

Harvest import uses the Grafana create/update dashboard api to import the dashboards. That API says

dashboard.id – id = null to create a new dashboard.

but since the dashboards that you're trying to import have an id, Grafana will try to update instead of create. The update is failing because the dashboard does not exist to update. Grafana returns the (404 - 404 Not Found) map[message:Dashboard not found status:not-found

Possible workarounds

  • The Grafana import UI I pasted above handles this case better and will "do the right thing" when the dashboard does not exist
  • D…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by luddite516
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants