From 8a5af77597b45e6e31ae93f6ad4b3291a6d82728 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Sat, 4 May 2024 15:11:07 +0100 Subject: [PATCH] Fix Loki object store setup --- nix/monitoring/configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nix/monitoring/configuration.nix b/nix/monitoring/configuration.nix index b01b986..8423240 100644 --- a/nix/monitoring/configuration.nix +++ b/nix/monitoring/configuration.nix @@ -118,6 +118,16 @@ period = "24h"; }; } + { + from = "2024-05-01"; + store = "tsdb"; + object_store = "filesystem"; + schema = "v13"; + index = { + prefix = "index_"; + period = "24h"; + }; + } ]; }; @@ -127,6 +137,11 @@ cache_location = "/var/lib/loki/boltdb-shipper-cache"; cache_ttl = "24h"; }; + tsdb_shipper = { + active_index_directory = "/var/lib/loki/tsdb-shipper-active"; + cache_location = "/var/lib/loki/tsdb-shipper-cache"; + cache_ttl = "24h"; + }; filesystem = { directory = "/var/lib/loki/chunks";