Hi,
I have a question regarding my Loki setup.
Here is mu config:
server:
http_listen_port: 3100
common:
path_prefix: /var/lib/loki
auth_enabled: false
ingester:
lifecycler:
ring:
kvstore:
store: inmemory
replication_factor: 1
chunk_idle_period: 5m
chunk_retain_period: 30s
schema_config:
configs:
- from: 2022-06-01
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
storage_config:
boltdb_shipper:
active_index_directory: /var/lib/loki/index
cache_location: /var/lib/loki/boltdb-cache
filesystem:
directory: /var/lib/loki/chunks
limits_config:
allow_structured_metadata: false
reject_old_samples: true
reject_old_samples_max_age: 168h
retention_period: 8000h
compactor:
working_directory: /var/lib/loki/compactor
retention_enabled: true
compaction_interval: 24h
retention_delete_delay: 1h
delete_request_store: filesystem
My first chunk was created on December 3, 2024. I recently applied a configuration with retention parameters (previously, retention was not enabled). When I checked today, the first chunk now has the date December 29, 2024, but the size of the /chunks folder has not decreased.
I this folder /var/lib/loki/compactor/retention/filesystem_2022-06-01/markers/ is also empty. And this one /var/lib/loki/compactor/deletion/delete_requests/delete_requests contains only one record:
-rw-r--r-- 1 root root 16384 Nov 26 12:27 /var/lib/loki/compactor/deletion/delete_requests/delete_requests
with this content
cat /var/lib/loki/compactor/deletion/delete_requests/delete_requests
??
????FnQ??
?HyQ5L&
Could you please help me understand what happened? Were the chunks really deleted?
If I change retention_period to 1440h, will this keep data for only 2 months and remove older chunks?
Thank you in advance.