From bf4c108feb90db93f95db06be6ac8833db135574 Mon Sep 17 00:00:00 2001 From: Maaike Date: Sun, 18 Aug 2024 18:12:47 +0200 Subject: [PATCH] improved monitoring stack --- docker-compose.monitoring.yml | 3 +++ loki/loki-config.yml | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docker-compose.monitoring.yml b/docker-compose.monitoring.yml index 8752360d..d97b3af1 100644 --- a/docker-compose.monitoring.yml +++ b/docker-compose.monitoring.yml @@ -63,6 +63,7 @@ services: command: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.retention.time=10d' + - '--log.level=warn' # uncomment cadvisor to monitor containers # cadvisor: @@ -104,6 +105,8 @@ services: - GF_DISABLE_SIGNOUT_MENU=true - GF_SERVER_ROOT_URL=${WIS2BOX_URL:-http://localhost}/monitoring - GF_SERVER_SERVE_FROM_SUB_PATH=true + - GF_USAGE_STATS_ENABLED=false + - GF_LOG_LEVEL=warn ports: - 3000:3000 diff --git a/loki/loki-config.yml b/loki/loki-config.yml index 52aae6ce..0ddcdcc9 100644 --- a/loki/loki-config.yml +++ b/loki/loki-config.yml @@ -2,6 +2,7 @@ auth_enabled: false server: http_listen_port: 3100 + log_level: warn common: path_prefix: /loki @@ -25,8 +26,14 @@ schema_config: prefix: index_ period: 24h -table_manager: - retention_deletes_enabled: true +compactor: + working_directory: /loki/retention + compaction_interval: 10m + retention_enabled: true + retention_delete_delay: 5m + retention_delete_worker_count: 5 + +limits_config: retention_period: 240h ruler: