Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mount grafana.ini from Host for Editable Grafana Configuration #682

Open
MPLA101 opened this issue Oct 18, 2024 · 2 comments
Open

Mount grafana.ini from Host for Editable Grafana Configuration #682

MPLA101 opened this issue Oct 18, 2024 · 2 comments

Comments

@MPLA101
Copy link

MPLA101 commented Oct 18, 2024

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

@jshufro
Copy link
Contributor

jshufro commented Oct 18, 2024

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

@MPLA101
Copy link
Author

MPLA101 commented Oct 28, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants