Skip to content
Snippets Groups Projects
Commit 08e427ad authored by Varac's avatar Varac
Browse files

Merge branch '874-update-and-configure-loki' into 'master'

Update and configure loki

See merge request openappstack/openappstack!469
parents 61886fef b076c606
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ spec: ...@@ -10,7 +10,7 @@ spec:
spec: spec:
# https://artifacthub.io/packages/helm/grafana/loki # https://artifacthub.io/packages/helm/grafana/loki
chart: loki chart: loki
version: 2.5.2 version: 2.6.0
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: grafana name: grafana
......
...@@ -49,14 +49,20 @@ data: ...@@ -49,14 +49,20 @@ data:
shared_store: filesystem shared_store: filesystem
filesystem: filesystem:
directory: /data/loki/chunks directory: /data/loki/chunks
# https://grafana.com/docs/loki/v2.3.0/operations/storage/retention/#retention-configuration^B
compactor: compactor:
working_directory: /data/loki/boltdb-shipper-compactor working_directory: /data/loki/boltdb-shipper-compactor
shared_store: filesystem shared_store: filesystem
compaction_interval: 10m
retention_enabled: true
retention_delete_delay: 2h
retention_delete_worker_count: 150
limits_config: limits_config:
retention_period: 48h # 2 days
reject_old_samples: true reject_old_samples: true
reject_old_samples_max_age: 168h # 7 days reject_old_samples_max_age: 48h # 2 days
chunk_store_config: chunk_store_config:
max_look_back_period: 168h # 7 days max_look_back_period: 48h # 2 days
table_manager: table_manager:
retention_deletes_enabled: true retention_deletes_enabled: true
retention_period: 168h # 7 days retention_period: 48h # 7 days
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment