Saving data after docker restart #127
-
Hello, I used this solution and it turned out to be very convenient. But I didn’t find any description in the article of how you can point to “volumes” for grafana, loki, prometheuse and tempo. I checked and, as expected, all settings are reset after a reboot. I went inside and couldn’t find the data folder (/var/lib/grafana, ...). Can you please tell me which folders are responsible for saving container data? P.S: I also found something strange, you can easily log into Grafana without authorization and make all the settings, is this how it was intended? If so, is there any way to disable this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
yes, this docker image is optimized for easy testing you can pass grafana env vars to change that however - see https://github.com/grafana/grafana/blob/main/conf/sample.ini#L557 you can create a pr to set these env vars only if missing: docker-otel-lgtm/docker/run-grafana.sh Lines 5 to 6 in b48b095 this snippet also shows how env vars are translated, e.g. https://github.com/grafana/grafana/blob/main/conf/sample.ini#L632
see Lines 12 to 15 in 81745f6 |
Beta Was this translation helpful? Give feedback.
yes, this docker image is optimized for easy testing
you can pass grafana env vars to change that however - see https://github.com/grafana/grafana/blob/main/conf/sample.ini#L557
you can create a pr to set these env vars only if missing:
docker-otel-lgtm/docker/run-grafana.sh
Lines 5 to 6 in b48b095
this snippet also shows how env vars are translated, e.g. https://github.com/grafana/grafana/blob/main/con…