Skip to content

Commit

Permalink
Support loki log rotation
Browse files Browse the repository at this point in the history
Enable loki log rotation by default, the default retention period
is 30 days.

Fixes #525
  • Loading branch information
yaguangtang committed Oct 4, 2024
1 parent 345787b commit 7ee6e15
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions roles/loki/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,28 @@ _loki_helm_values:
auth_enabled: false
commonConfig:
replication_factor: 1
compactor:
working_directory: /var/loki/compactor
compaction_interval: 10m
retention_enabled: true
delete_request_store: filesystem
retention_delete_delay: 2h
retention_delete_worker_count: 150
limits_config:
max_label_names_per_series: 25
retention_period: 30d
rulerConfig:
alertmanager_url: http://alertmanager-operated.monitoring:9093
enable_alertmanager_v2: true
enable_api: true
rule_path: /var/loki/rules-temp
ring:
kvstore:
store: inmemory
storage:
type: local
local:
directory: /var/loki/rulestorage
storage:
type: filesystem
test:
Expand Down

0 comments on commit 7ee6e15

Please sign in to comment.