Skip to content

Commit a3eec16

Browse files
Merge pull request #3246 from SwiftPackageIndex/loki-update
Bump Loki to 3.1.0
2 parents 8a53fda + a4ae7c9 commit a3eec16

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

infrastructure/loki.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ ingester:
2929
max_chunk_age: 1h # All chunks will be flushed when they hit this age, default is 1h
3030
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
3131
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
3332
wal:
3433
dir: "/tmp/wal"
3534

@@ -42,31 +41,36 @@ schema_config:
4241
index:
4342
prefix: index_
4443
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
4551

4652
storage_config:
4753
boltdb_shipper:
4854
active_index_directory: /tmp/loki/boltdb-shipper-active
4955
cache_location: /tmp/loki/boltdb-shipper-cache
5056
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
5260
filesystem:
5361
directory: /tmp/loki/chunks
5462

5563
compactor:
5664
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
5870

71+
# https://grafana.com/docs/loki/latest/operations/storage/retention/#configuring-the-retention-period
5972
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
7074

7175
ruler:
7276
storage:

mon.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ services:
4242

4343
loki:
4444
# https://github.com/grafana/loki/releases
45-
image: grafana/loki:2.9.9
45+
image: grafana/loki:3.1.0
4646
command: -config.file=/loki.yml
4747
configs:
4848
- source: loki_cfg
@@ -54,7 +54,7 @@ services:
5454
promtail:
5555
# https://github.com/grafana/loki/releases
5656
# (promtail is released in parallel with loki)
57-
image: grafana/promtail:2.9.9
57+
image: grafana/promtail:3.1.0
5858
command: -config.file=/promtail.yml
5959
configs:
6060
- source: promtail_cfg

0 commit comments

Comments
 (0)