Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Use the import api for new dashboards #21

Closed
wants to merge 1 commit into from

Conversation

ghmeier
Copy link

@ghmeier ghmeier commented Mar 11, 2019

Based on recommendations from
grafana
we should prefer the import api to the db api when creating new
dashboards. It has the same format and response so we shouldn't need any
other changes.

Resolves #20

Based on recommendations from
[grafana](grafana/grafana#7592 (comment))
we should prefer the import api to the db api when creating new
dashboards. It has the same format and response so we shouldn't need any
other changes
Copy link
Contributor

@mlclmj mlclmj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having a hard time even checking this--can we add a test for this?

@mlclmj mlclmj added bug Bugs or bug fixes size/XS Denotes a PR that changes 0-9 lines labels Oct 19, 2019
@tonglil tonglil added the waiting response Waiting for a response from the author label Jun 2, 2020
@tonglil
Copy link
Contributor

tonglil commented Jun 4, 2020

@sethbacon
Copy link

It looks like Grafana has changed their API and /api/dashboards/import no longer works. Importing a dashboard is now a create/update via POST to /api/dashboards/db, passing in the dashboard as a JSON.

@tonglil
Copy link
Contributor

tonglil commented Jun 4, 2020

Thanks!
Going to close this PR as it doesn't contain the fix needed.
Anyone is free to open a new PR based on the information @sethbacon posted above :)

@tonglil tonglil closed this Jun 4, 2020
@ghmeier ghmeier deleted the ghmeier/use-import-api branch October 12, 2022 04:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs or bug fixes size/XS Denotes a PR that changes 0-9 lines waiting response Waiting for a response from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use import API when creating a new dashboard
4 participants