]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - systems/zoldene/logging.nix
Bump zoldene version
[perso/Immae/Config/Nix.git] / systems / zoldene / logging.nix
index 2b6e331126a09d3b2507c6b46391e79a2be5d8c3..398465b16ca2b482ec71be41e655d4543f621f5d 100644 (file)
@@ -102,6 +102,11 @@ in
         ingestion_burst_size_mb = 200;
         per_stream_rate_limit = "100MB";
         per_stream_rate_limit_burst = "200MB";
+        # Need to migrate to v13 schema
+        # MULTIPLE CONFIG ERRORS FOUND, PLEASE READ CAREFULLY
+        # CONFIG ERROR: schema v13 is required to store Structured Metadata and use native OTLP ingestion, your schema version is v11. Set `allow_structured_metadata: false` in the `limits_config` section or set the command line argument `-validation.allow-structured-metadata=false` and restart Loki. Then proceed to update to schema v13 or newer before re-enabling this config, search for 'Storage Schema' in the docs for the schema update procedure
+        # CONFIG ERROR: `tsdb` index type is required to store Structured Metadata and use native OTLP ingestion, your index type is `boltdb-shipper` (defined in the `store` parameter of the schema_config). Set `allow_structured_metadata: false` in the `limits_config` section or set the command line argument `-validation.allow-structured-metadata=false` and restart Loki. Then proceed to update the schema to use index type `tsdb` before re-enabling this config, search for 'Storage Schema' in the docs for the schema update procedure"
+        allow_structured_metadata = false;
       };
 
       schema_config.configs = [
@@ -113,6 +118,14 @@ in
           index.prefix = "index_";
           index.period = "24h";
         }
+        {
+          from = "2024-07-08";
+          store = "tsdb";
+          object_store = "filesystem";
+          schema = "v13";
+          index.prefix = "index_";
+          index.period = "24h";
+        }
       ];
     };
   };