Skip to content

Commit 67e2c01

Browse files
authored
Feature/Add retention period to grafana loki (#22)
1 parent 878ee49 commit 67e2c01

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Grafana/Loki/Config/loki-local-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ query_range:
2727
max_size_mb: 100
2828
parallelise_shardable_queries: false
2929

30+
compactor:
31+
retention_enabled: true
32+
delete_request_store: filesystem
33+
working_directory: /data/retention
34+
3035
schema_config:
3136
configs:
3237
- from: 2020-10-24
@@ -47,6 +52,7 @@ limits_config:
4752
max_query_length: 0h # Controls max time range for queries. Default is 721h.
4853
split_queries_by_interval: 24h
4954
query_timeout: 10m # To avoid Grafana timeouts when frontend parallelism is lowered.
55+
retention_period: 8760h # Length of time to retain Loki logs for. Default is 8760h (12 months)
5056

5157
querier:
5258
max_concurrent: 4

0 commit comments

Comments
 (0)