Skip to content

Commit

Permalink
fix: loki retention are not cleaned at all
Browse files Browse the repository at this point in the history
Signed-off-by: Atomys <[email protected]>
  • Loading branch information
42atomys committed Aug 28, 2024
1 parent 8ddbbad commit 2983684
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions deploy/stacks/cluster/configs/monitoring/loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ schema_config:
index:
prefix: loki_
period: 24h

storage_config:
boltdb_shipper:
shared_store: filesystem
active_index_directory: /data/loki/boltdb-shipper-active
cache_location: /data/loki/boltdb-shipper-cache
cache_ttl: 24h
filesystem:
directory: /data/loki/chunks
retention:
period: 336h # Cela correspond à 14 jours

limits_config:
retention_period: 336h
retention_stream:
Expand All @@ -25,12 +37,12 @@ limits_config:
- selector: '{namespace="previews"}'
priority: 1
period: 24h

memberlist:
join_members:
- "loki"

server:
grpc_listen_port: 9095
http_listen_port: 3100
storage_config:
filesystem:
directory: /data/loki/chunks

0 comments on commit 2983684

Please sign in to comment.