I’m using Grafana for one of my hobby projects which is also deployed to a public-facing server.
I am the only user of Grafana as it is supposed to be read-only for anonymous access.
My current workflow is:
- Run Grafana locally.
- Make changes to local dashboards, data-sources, …
- Stop local Grafana.
- Stop remote Grafana.
- Copy local
grafana.db
to the remote machine. - Start remote Grafana.
- Goto (1)
However this feels terribly inefficient and stupid to my mind 😅
To automate parts of this process, I tried gdg and grafana-backup-tool.
I couldn’t get the former to work w/ my workflow (local storage) as it barfed at the very start w/ the infamous “invalid cross-device link” Go error.
The latter seems to work but only partially; for example organisations are not exported.
❓ Given I may switch to PostgreSQL as Grafana’s DB in the near future, my question is, what is the best way to automate my process short of stopping Grafana and copying database files.
Update 1
I reached out to the gdg folks and the blocking bugs are now fixed on
main
🥳I’ll post back here once I’ve got something working w/ gdg.