From 9e1d6e2f976410176978c4a6cafffef716b6545f Mon Sep 17 00:00:00 2001 From: Jens Beckmann Date: Sat, 11 Jul 2026 16:44:38 +0000 Subject: [PATCH] loki-config.yaml aktualisiert --- loki-config.yaml | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/loki-config.yaml b/loki-config.yaml index 1a452bd..b8abcd9 100644 --- a/loki-config.yaml +++ b/loki-config.yaml @@ -2,20 +2,32 @@ auth_enabled: false server: http_listen_port: 3100 + grpc_listen_port: 9095 -common: - instance_addr: 127.0.0.1 - path_prefix: /loki - storage: - filesystem: - chunks_directory: /loki/chunks - rules_directory: /loki/rules - replication_factor: 1 +# Wir verzichten komplett auf den 'common' Block, um Konflikte zu vermeiden. schema_config: configs: - store: tsdb schema: v13 + period: 24h + +storage_config: + tsdb_shipper: + active: true + config: + # Hier definieren wir den Object Store explizit als filesystem + store: filesystem + filesystem: + directory: /loki/chunks limits_config: - allow_structured_metadata: false \ No newline at end of file + allow_structured_metadata: false + reject_old_samples: true + reject_old_samples_max_age: 168h + +# WICHTIG: Wir definieren den Speicherort für die Chunks separat, +# da Loki sonst wieder 'object_store type ""' meldet. +chunk_store_config: + filesystem: + directory: /loki/chunks \ No newline at end of file