coolsnowwolf-packages/utils/prometheus
Alex Simkin e642f308ba prometheus: Update default tsdb directory handling
Use /srv/prometheus instead of /data, because user `prometheus` doens't
have permissions to create `/data/` in `/`.

Instead this commit puts prometheus data into `/srv/prometheus` by
default, which is a cleaner path, and it'll create tsdb path & then assign
required permissions on each prometheus service start.

This way, also, the cases when users re-configure tsdb to point to
external USB - it'll also be created and assigned required permissions for
prometheus.

Signed-off-by: Alex Simkin <sashasimkin@gmail.com>
2022-11-11 14:46:54 +08:00
..
files prometheus: Update default tsdb directory handling 2022-11-11 14:46:54 +08:00
Makefile prometheus: Update default tsdb directory handling 2022-11-11 14:46:54 +08:00
test.sh packages: merge upstream 2021-06-15 17:47:11 +08:00