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

Support grafana-sync push-dashboards with the same folder #8

Closed
tuan-phan opened this issue Mar 8, 2021 · 3 comments
Closed

Support grafana-sync push-dashboards with the same folder #8

tuan-phan opened this issue Mar 8, 2021 · 3 comments

Comments

@tuan-phan
Copy link

Hi @mpostument ,
I'm trying to use your tool. The problem that all my dashboard want to sync have a tag ="sync" and put into the folder called "sync_folder"
I can pull all dashboards with tag==sync
./grafana-sync pull-dashboards --apikey="*******" --directory="dashboards" --url http://grafana-dev.dev.jpe2.net --tag=sync
All of them will save in folder dashboards/sync
I used this command to push them into stg env:
./grafana-sync push-dashboards --apikey="*****" --directory="dashboards/sync" --url http://grafana-stg.stg.jpe2.net
But they are in General folder not in "sync_folder"
I tried to create "sync_folder" in stg env but no luck.
Can we support this case?
Thank you,

@mpostument
Copy link
Owner

Hello @tuan-phan i can add additional parameter such as folderId to command which can be used to specify in which folder to save dashboards

@mpostument
Copy link
Owner

mpostument commented Mar 8, 2021

In 1.3.0. You can push dashboards to the non-default folder - Readme

@tuan-phan
Copy link
Author

@mpostument
That's awesome. Thank you,

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

No branches or pull requests

2 participants