purge logs and metrics after 4 weeks

This commit is contained in:
goeranh 2026-04-20 14:28:13 +02:00
parent 9a5716f2df
commit c31063ca56
No known key found for this signature in database

View file

@ -61,6 +61,12 @@
per_stream_rate_limit = "32MB"; per_stream_rate_limit = "32MB";
per_stream_rate_limit_burst = "64MB"; per_stream_rate_limit_burst = "64MB";
max_query_series = 100000; max_query_series = 100000;
retention_period = "672h"; # 28 days
};
compactor = {
retention_enabled = true;
working_directory = "/var/lib/loki/compactor";
delete_request_store = "filesystem";
}; };
schema_config = { schema_config = {
configs = [ configs = [
@ -124,6 +130,7 @@
ingestion_rate = 100000; ingestion_rate = 100000;
ingestion_burst_size = 200000; ingestion_burst_size = 200000;
max_global_series_per_user = 0; max_global_series_per_user = 0;
compactor_blocks_retention_period = "672h"; # 28 days
}; };
store_gateway = { store_gateway = {
sharding_ring = { sharding_ring = {