fix(loki): compactor.retention_enabled

This commit is contained in:
arcnmx 2025-03-15 15:16:22 -07:00
parent d8ca3a9bd4
commit 1c93bd9bf8

View file

@ -25,6 +25,12 @@ in {
http_listen_port = mkOptionDefault 9093; http_listen_port = mkOptionDefault 9093;
grpc_listen_port = mkOptionDefault 0; grpc_listen_port = mkOptionDefault 0;
}; };
compactor = {
working_directory = mkOptionDefault "${cfg.dataDir}/retention";
retention_enabled = mkOptionDefault true;
retention_delete_delay = mkOptionDefault "12h";
delete_request_store = mkOptionDefault "filesystem";
};
limits_config = mapOptionDefaults { limits_config = mapOptionDefaults {
ingestion_rate_mb = 256; ingestion_rate_mb = 256;
ingestion_burst_size_mb = 512; ingestion_burst_size_mb = 512;
@ -37,6 +43,7 @@ in {
per_stream_rate_limit_burst = "256MB"; per_stream_rate_limit_burst = "256MB";
reject_old_samples = true; reject_old_samples = true;
reject_old_samples_max_age = "${toString (24 * 9)}h"; reject_old_samples_max_age = "${toString (24 * 9)}h";
retention_period = "360h";
}; };
# https://grafana.com/docs/loki/latest/configure/examples/configuration-examples/#1-local-configuration-exampleyaml # https://grafana.com/docs/loki/latest/configure/examples/configuration-examples/#1-local-configuration-exampleyaml
auth_enabled = mkOptionDefault false; auth_enabled = mkOptionDefault false;