Hi, I’m facing a strange issue with dashboard persistence when running Grafana in Docker. My dashboards seem to revert to an older state randomly after I restart my containers.
I will create and save a set of dashboards, and they work perfectly. However, when I stop and restart my stack using docker-compose down and then docker-compose up -d, one of two things happens:
Sometimes, the correct, most recently saved dashboards appear.
Other times, a completely different, older set of dashboards appears, and all my recent work is gone.
This seems to happen unpredictably. If I restart again, the “good” dashboards might reappear. Any advice?
That SQLite is pure fs approach, so play it with that. Check some fsync options on your os and used docker storage driver, maybe sqllite level. I would try proper DB (postgres) they works better with with fs usually.