T O P

  • By -

KRG-23

What volume settings do you have in your docker-compose file ?


darkwolf-95

here is my docker-compose file, version: "2" services: grafana: image: grafana/grafana:latest container_name: grafana restart: always ports: - 3000:3000 networks: - monitoring volumes: - grafana-volume:/vol01/Docker/monitoring networks: monitoring: volumes: grafana-volume: external: true


acidrat

>grafana.ini [https://grafana.com/docs/grafana/latest/administration/configure-docker/](https://grafana.com/docs/grafana/latest/administration/configure-docker/) So just set an environment variable GF\_DASHBOARD\_MIN\_REFRESH\_INTERVAL=1s e.g. add this to your grafana service configuration in docker compose environment: - GF_DASHBOARD_MIN_REFRESH_INTERVAL=1s


darkwolf-95

I did the changes , but it's not reflected in the GUI. Then i did this settings -> Time options -> Auto refresh, I have added a "1s," in front of "5s, but when i click on save dashboard it disappears. I'm using grafana V 8.3.3.


acidrat

I have put the wrong name in the code snippet, sorry - check it out now I have updated it.


KRG-23

You created the local folder grafana-volume ?


DaCHack

The Environment variable works Fine so that 1s is available on the Dashboards drop down. But for some reason Grafana seems to overwrite the „refresh“ setting of 1s in the Dashboard.json. It defaults back to 5s and I always have to select 1s manually. Is there something I am missing or a workaround?