Skip to content

Commit a54863a

Browse files
committed
feat(loki): enable compactor with S3 retention settings
Added compactor configuration to Loki with S3 (DO Spaces) as the shared store. Updated checksum annotations in the vendor configuration to reflect the changes.
1 parent f3a469b commit a54863a

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

platform/loki/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ loki:
2323
querier:
2424
max_concurrent: 4
2525

26+
compactor:
27+
working_directory: /var/loki/retention
28+
compaction_interval: 10m
29+
retention_enabled: true
30+
retention_delete_delay: 2h
31+
retention_delete_worker_count: 150
32+
delete_request_store: s3
33+
2634
storage:
2735
type: s3
2836
bucketNames:

platform/loki/vendor/loki.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ data:
174174
s3forcepathstyle: true
175175
secret_access_key: ${GRAFANA_LOKI_S3_SECRETACCESSKEY}
176176
signature_version: v4
177+
compactor:
178+
compaction_interval: 10m
179+
delete_request_store: s3
180+
retention_delete_delay: 2h
181+
retention_delete_worker_count: 150
182+
retention_enabled: true
183+
working_directory: /var/loki/retention
177184
frontend:
178185
scheduler_address: ""
179186
tail_proxy_url: ""
@@ -1005,7 +1012,7 @@ spec:
10051012
template:
10061013
metadata:
10071014
annotations:
1008-
checksum/config: ff5a2ffa1b3b6c389699c692878bad405da8826f0f1395d21ab85a02efcbd0b0
1015+
checksum/config: a87d69103d5dac6fd3117a46a13f12da0cf14de50037ee216fc48b86d3a9375c
10091016
labels:
10101017
app.kubernetes.io/part-of: memberlist
10111018
app.kubernetes.io/name: loki
@@ -1135,7 +1142,7 @@ spec:
11351142
template:
11361143
metadata:
11371144
annotations:
1138-
checksum/config: ff5a2ffa1b3b6c389699c692878bad405da8826f0f1395d21ab85a02efcbd0b0
1145+
checksum/config: a87d69103d5dac6fd3117a46a13f12da0cf14de50037ee216fc48b86d3a9375c
11391146
labels:
11401147
app.kubernetes.io/name: loki
11411148
app.kubernetes.io/instance: loki
@@ -1498,7 +1505,7 @@ spec:
14981505
template:
14991506
metadata:
15001507
annotations:
1501-
checksum/config: ff5a2ffa1b3b6c389699c692878bad405da8826f0f1395d21ab85a02efcbd0b0
1508+
checksum/config: a87d69103d5dac6fd3117a46a13f12da0cf14de50037ee216fc48b86d3a9375c
15021509
labels:
15031510
app.kubernetes.io/name: loki
15041511
app.kubernetes.io/instance: loki

0 commit comments

Comments
 (0)