diff --git a/services/monitoring/loki.nix b/services/monitoring/loki.nix index bf37f87..87ee06f 100644 --- a/services/monitoring/loki.nix +++ b/services/monitoring/loki.nix @@ -37,6 +37,22 @@ directory = "/var/lib/loki/chunks"; }; }; + compactor = { + working_directory = "/var/lib/loki/compactor"; + compaction_interval = "10m"; + retention_enabled = true; + retention_delete_delay = "2h"; + retention_delete_worker_count = 150; + delete_request_store = "filesystem"; + }; + limits_config = { + retention_period = "30d"; + ingestion_rate_mb = 10; + ingestion_burst_size_mb = 20; + max_streams_per_user = 10000; + max_query_series = 500; + max_query_parallelism = 8; + }; }; }; }