fix: add 4 logs retention for loki

This commit is contained in:
teutat3s 2023-12-08 17:31:03 +01:00
parent 6c1fa290e8
commit 219b67df20
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -28,7 +28,16 @@
}; };
}; };
}; };
# Keep logs for 4 weeks
# https://grafana.com/docs/loki/latest/operations/storage/retention/
limits_config.retention_period = "4w";
compactor = {
shared_store = "filesystem";
compaction_interval = "10m";
retention_enabled = true;
retention_delete_delay = "2h";
retention_delete_worker_count = 150;
};
schema_config = { schema_config = {
configs = [{ configs = [{
from = "2020-05-15"; from = "2020-05-15";