smartnode icon indicating copy to clipboard operation
smartnode copied to clipboard

Mount grafana.ini from Host for Editable Grafana Configuration

Open MPLA101 opened this issue 1 year ago • 2 comments

To ensure that we can easily make persistent changes to the Grafana configuration (grafana.ini), we need to mount the grafana.ini file from the host to the Docker container. This will allow us to modify the configuration without needing to access the container directly, ensuring changes persist across container restarts.

Action Required:

•	Update the Grafana Docker run command to include a bind mount for grafana.ini from the host machine.
•	Example of the updated docker run command:

docker run -d --name rocketpool_grafana -v /path/on/host/grafana.ini:/etc/grafana/grafana.ini -v /var/lib/docker/volumes/rocketpool_grafana-storage/_data:/var/lib/grafana -p 3100:3100 grafana/grafana:9.5.18

MPLA101 avatar Oct 18 '24 21:10 MPLA101

this can be done with a line in ~/.rocketpool/override/grafana.yml

jshufro avatar Oct 18 '24 22:10 jshufro

Thanks @jshufro That worked. I configured SMTP as per https://docs.rocketpool.net/guides/node/grafana but when sending test email, I am getting below error. logger=ngalert.notifier.email t=2024-10-28T17:53:16.086051629Z level=error msg="Missing receiver" logger=ngalert.notifier.email t=2024-10-28T17:53:16.086094569Z level=error msg="Missing group labels"

Any Idea what might be wrong?

MPLA101 avatar Oct 28 '24 17:10 MPLA101