@@ -29,7 +29,6 @@ ingester:
29
29
max_chunk_age : 1h # All chunks will be flushed when they hit this age, default is 1h
30
30
chunk_target_size : 1048576 # Loki will attempt to build chunks up to 1.5MB, flushing first if chunk_idle_period or max_chunk_age is reached first
31
31
chunk_retain_period : 30s # Must be greater than index read cache TTL if using an index cache (Default index read cache TTL is 5m)
32
- max_transfer_retries : 0 # Chunk transfers disabled
33
32
wal :
34
33
dir : " /tmp/wal"
35
34
@@ -42,31 +41,36 @@ schema_config:
42
41
index :
43
42
prefix : index_
44
43
period : 24h
44
+ - from : 2024-07-23
45
+ store : tsdb
46
+ object_store : filesystem
47
+ schema : v13
48
+ index :
49
+ prefix : index_
50
+ period : 24h
45
51
46
52
storage_config :
47
53
boltdb_shipper :
48
54
active_index_directory : /tmp/loki/boltdb-shipper-active
49
55
cache_location : /tmp/loki/boltdb-shipper-cache
50
56
cache_ttl : 24h # Can be increased for faster performance over longer query periods, uses more disk space
51
- shared_store : filesystem
57
+ tsdb_shipper :
58
+ active_index_directory : /tmp/loki/tsdb-index
59
+ cache_location : /tmp/loki/tsdb-cache
52
60
filesystem :
53
61
directory : /tmp/loki/chunks
54
62
55
63
compactor :
56
64
working_directory : /tmp/loki/boltdb-shipper-compactor
57
- shared_store : filesystem
65
+ compaction_interval : 10m
66
+ retention_enabled : true
67
+ retention_delete_delay : 2h
68
+ retention_delete_worker_count : 150
69
+ delete_request_store : filesystem
58
70
71
+ # https://grafana.com/docs/loki/latest/operations/storage/retention/#configuring-the-retention-period
59
72
limits_config :
60
- reject_old_samples : true
61
- reject_old_samples_max_age : 168h
62
- split_queries_by_interval : 24h
63
-
64
- chunk_store_config :
65
- max_look_back_period : 168h
66
-
67
- table_manager :
68
- retention_deletes_enabled : true
69
- retention_period : 168h
73
+ retention_period : 336h # 14 days
70
74
71
75
ruler :
72
76
storage :
0 commit comments