From 46d2a4056a2f0c81217058a44ff5b972fd886cf9 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 7 Jun 2024 01:11:41 +0200 Subject: [PATCH] cluster/services/monitoring: fix loki config for 3.0.0 --- cluster/services/monitoring/logging.nix | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/cluster/services/monitoring/logging.nix b/cluster/services/monitoring/logging.nix index d25e0ba..089e0cb 100644 --- a/cluster/services/monitoring/logging.nix +++ b/cluster/services/monitoring/logging.nix @@ -61,15 +61,28 @@ in period = "24h"; }; } + { + from = "2024-06-10"; + store = "tsdb"; + object_store = "s3"; + schema = "v13"; + index = { + prefix = "index_"; + period = "24h"; + }; + } ]; storage_config = { boltdb.directory = "${cfg.dataDir}/boltdb-index"; filesystem.directory = "${cfg.dataDir}/storage-chunks"; boltdb_shipper = { - shared_store = "s3"; active_index_directory = "${cfg.dataDir}/boltdb-shipper-index"; cache_location = "${cfg.dataDir}/boltdb-shipper-cache"; }; + tsdb_shipper = { + active_index_directory = "${cfg.dataDir}/tsdb-shipper-index"; + cache_location = "${cfg.dataDir}/tsdb-shipper-cache"; + }; aws = { endpoint = cluster.config.links.garageS3.url; s3forcepathstyle = true; @@ -80,14 +93,15 @@ in }; }; compactor = { - shared_store = "s3"; working_directory = "${cfg.dataDir}/compactor-work"; }; limits_config = { - enforce_metric_name = false; reject_old_samples = true; reject_old_samples_max_age = "168h"; + allow_structured_metadata = false; }; + query_scheduler.max_outstanding_requests_per_tenant = 32768; + querier.max_concurrent = 16; }; }; }