Skip to content

[grafana] add volume for grafana data under plugin - #407

Open
Shobhit-Nagpal wants to merge 1 commit into
nasa:v6from
Shobhit-Nagpal:grafana/add-plugin-volume
Open

Shobhit-Nagpal wants to merge 1 commit into
nasa:v6from
Shobhit-Nagpal:grafana/add-plugin-volume

Conversation

@Shobhit-Nagpal

Copy link
Copy Markdown

Fixes #209

Why

The plugin's dev compose file persists TimescaleDB but not /var/lib/grafana, so recreating the Grafana container loses dashboards while the database survives.

What

Add a named grafana-data volume to the Grafana service. It goes in docker-compose.yaml because .config/ is generated. Use docker compose down -v to reset Grafana to a clean state.

Testing

Created a dashboard, then ran restart, up -d --force-recreate and down + up -d. The dashboard and database row survived all three; without this change, both recreates lost the dashboard.

Note: On testing locally, I switched out timescale db with postgres due disk space issues

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant