diff --git a/loki-config.yaml b/loki-config.yaml index ceb207d..e9e6420 100644 --- a/loki-config.yaml +++ b/loki-config.yaml @@ -1,7 +1,9 @@ auth_enabled: false + server: http_listen_port: 3100 grpc_listen_port: 9095 + common: instance_addr: 127.0.0.1 path_prefix: /loki @@ -9,18 +11,23 @@ common: filesystem: chunks_directory: /loki/chunks rules_directory: /loki/rules + schema_config: configs: - - store: filesystem - schema: v13 # <--- DIESE ZEILE HAT GEFEHLT! - index: - prefix: index_ - period: 24h + - store: tsdb # GEÄNDERT: von filesystem auf tsdb + schema: v13 # AKTUELLSTER Standard für TSDB + period: 24h + limits_config: reject_old_samples: true reject_old_samples_max_age: 168h -chunk_store_config: - # max_look_back_period wurde entfernt und ist hier nicht mehr gültig -table_manager: - retention_deletes_enabled: false - retention_period: 0s \ No newline at end of file + # Deaktiviert die Fehlermeldung zu "Structured Metadata", falls nicht benötigt + allow_structured_metadata: false + +# Diese Sektion ist in neuen Versionen wichtig, um den lokalen Speicher explizit zu definieren +storage_config: + filesystem: + directory: /loki/chunks + +# Table Manager wird in neueren Loki-Versionen durch das Compactor-Modul ersetzt. +# Für ein einfaches lokales Setup reicht dies hier aus. \ No newline at end of file