From 57aa48d68a01cffaa3f9ca3ef04a2c12b463000e Mon Sep 17 00:00:00 2001 From: Paul Brinkmeier Date: Tue, 13 Sep 2022 15:51:14 +0200 Subject: [PATCH] Disable GitLab Prometheus and set tsdb retention time to 12h --- TODO.md | 1 + docker/web/docker-compose.yaml | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 83da82d..7ff5400 100644 --- a/TODO.md +++ b/TODO.md @@ -6,3 +6,4 @@ - [x] Make it inaccessible to anyone but root (`-rw------`) - [x] Add [Drone runner](https://docs.drone.io/runner/docker/installation/linux/) - [ ] Figure out how to dependably store `.env` files (Ansible vault? Something else?) +- [ ] Check out docker swarm and current best practices for Ansible diff --git a/docker/web/docker-compose.yaml b/docker/web/docker-compose.yaml index 0dfaf57..17c7e7d 100644 --- a/docker/web/docker-compose.yaml +++ b/docker/web/docker-compose.yaml @@ -79,11 +79,17 @@ services: # https://docs.gitlab.com/omnibus/settings/rpi.html puma['worker_processes'] = 2 sidekiq['concurrency'] = 9 - prometheus_monitoring['enable'] = false nginx['listen_port'] = 80 nginx['listen_https'] = false + # https://forum.gitlab.com/t/clear-up-postges-prometheus-data/38216/3 + prometheus_monitoring['enable'] = false + prometheus['enable'] = false + prometheus['flags'] = { + 'storage.tsdb.retention.time' => "12h" + } + jupyter: image: ihaskell-docker:1.0 # ports: