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

Update export script to allow create dashboard #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vinilima07
Copy link

To create a new Dashboard with import script, the API needs to see id=null and uid=null and/or overwrite = true on Dashboard config. To do that, i try change the label values with JQ.

To create a new Dashboard with import script, the API needs to see id=null and uid=null and/or overwrite = true on Dashboard config. To do that, i try to change the label values with JQ.
@hagen1778
Copy link
Owner

Hi @viniciusfdev !
The docs say:

dashboard.id – id = null to create a new dashboard.
dashboard.uid – Optional unique identifier when creating a dashboard. uid = null will generate a new uid.

I guess it is not that straightforward. If those params are nullified and user tries to restores dashboards after some unexpected modification - he will get a bunch of new dashboards instead of restored old ones.
The uid param is even more important because it allows to have consistent links to dashboard. It may be a surprise to get all links broken after dashboards restore.

I'd suggest to have a separate option/flag on import procedure to nullify this params if needed.

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.

2 participants