Skip to content

Commit

Permalink
improved monitoring stack (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper authored Aug 18, 2024
1 parent 2f39339 commit 2add1fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker-compose.monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down
11 changes: 9 additions & 2 deletions loki/loki-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ auth_enabled: false

server:
http_listen_port: 3100
log_level: warn

common:
path_prefix: /loki
Expand All @@ -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:
Expand Down

0 comments on commit 2add1fb

Please sign in to comment.