about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-05-18 23:18:32 +0900
committersefidel <contact@sefidel.net>2024-06-15 11:57:27 +0900
commitb42a87e83857f2a46ffac7306fdd9ea9fb2d1d06 (patch)
tree1575e015811db96a5a8a5964ed485653b01a1a20 /modules/services
parentf7e7fa60cd65a2d832784c3cbb04e27b7cd85680 (diff)
downloadinfra-b42a87e83857f2a46ffac7306fdd9ea9fb2d1d06.tar.gz
infra-b42a87e83857f2a46ffac7306fdd9ea9fb2d1d06.zip
fix(modules/metrics): migrate loki to 3.0
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/metrics.nix18
1 files changed, 6 insertions, 12 deletions
diff --git a/modules/services/metrics.nix b/modules/services/metrics.nix
index e8878a2..68c55b8 100644
--- a/modules/services/metrics.nix
+++ b/modules/services/metrics.nix
@@ -53,15 +53,14 @@ in
           max_chunk_age = "1h";
           chunk_target_size = 1048576; # 1.5M
           chunk_retain_period = "30s";
-          max_transfer_retries = 0;
         };
 
         schema_config.configs = [
           {
             from = "2023-02-24";
-            store = "boltdb-shipper";
+            store = "tsdb";
             object_store = "filesystem";
-            schema = "v11";
+            schema = "v13";
             index = {
               prefix = "index_";
               period = "24h";
@@ -70,11 +69,10 @@ in
         ];
 
         storage_config = {
-          boltdb_shipper = {
-            active_index_directory = "/var/lib/loki/boltdb-shipper-active";
-            cache_location = "/var/lib/loki/boltdb-shipper-cache";
+          tsdb_shipper = {
+            active_index_directory = "/var/lib/loki/tsdb-index";
+            cache_location = "/var/lib/loki/tsdb-cache";
             cache_ttl = "24h";
-            shared_store = "filesystem";
           };
 
           filesystem.directory = "/var/lib/loki/chunks";
@@ -87,10 +85,6 @@ in
           retention_period = "120h";
         };
 
-        chunk_store_config = {
-          max_look_back_period = "0s";
-        };
-
         table_manager = {
           retention_deletes_enabled = true;
           retention_period = "120h";
@@ -98,7 +92,7 @@ in
 
         compactor = {
           working_directory = "/var/lib/loki";
-          shared_store = "filesystem";
+          delete_request_store = "filesystem";
           compactor_ring.kvstore.store = "inmemory";
         };
       };