StefanSchubert / sabi

Seawater Aquarium Business Intelligence (sabi) aims to gain knowledge from aquarists for aquarists based on collected seawater parameters.
https://sabi-project.net
MIT License
4 stars 3 forks source link

Backup prometheus/grafana config and include it in ansible #125

Closed StefanSchubert closed 1 year ago

StefanSchubert commented 2 years ago

Is your feature request related to a problem? Please describe.

I had to re-image the SDcard for the frontend PI. As the APP install was covered via ansible, prod config was in backup, I totally lost my prometheus / grafana config and dashboards of my monitoring solution which was also located on the frontend-pi.

Describe the solution you'd like

1) Establish a cron job which will backup the config on my mac. Monthly basis is sufficient. 2) Add a ansible deployment which will create the user / config dir / and copies the backuped configuration back to the pis.

Ideally the backup from 1) would be stored directly into my checkout project dir (ansible assets dir)

Additional context Take care on grafana prod config as it contains the sensible admin secret.

StefanSchubert commented 1 year ago

Work has been completed