From 85425c19de2f16b60c1c5411d8f2922a24e7ac45 Mon Sep 17 00:00:00 2001 From: mezned Date: Sun, 10 Nov 2024 20:53:27 +0100 Subject: [PATCH] Update loki/rootfs/etc/loki/default-config.yaml --- loki/rootfs/etc/loki/default-config.yaml | 54 +++++++++--------------- 1 file changed, 21 insertions(+), 33 deletions(-) diff --git a/loki/rootfs/etc/loki/default-config.yaml b/loki/rootfs/etc/loki/default-config.yaml index cee11a4..06b02ae 100644 --- a/loki/rootfs/etc/loki/default-config.yaml +++ b/loki/rootfs/etc/loki/default-config.yaml @@ -1,45 +1,33 @@ ---- + +# This is a complete configuration to deploy Loki backed by the filesystem. +# The index will be shipped to the storage via tsdb-shipper. + auth_enabled: false -server: {} +server: + http_listen_port: 3100 -ingester: - lifecycler: - address: 127.0.0.1 - ring: - kvstore: - store: inmemory - replication_factor: 1 - final_sleep: 0s - chunk_idle_period: 1h - max_chunk_age: 1h - chunk_target_size: 1048576 - chunk_retain_period: 30s - wal: - dir: /data/loki/wal +common: + ring: + instance_addr: 127.0.0.1 + kvstore: + store: inmemory + replication_factor: 1 + path_prefix: /tmp/loki schema_config: configs: - - from: 2020-11-09 - store: tsdb # Changed to tsdb - object_store: filesystem - schema: v13 # Changed to v13 - index: - prefix: index_ - period: 24h + - from: 2020-05-15 + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: index_ + period: 24h storage_config: - tsdb_shipper: - active_index_directory: /data/loki/tsdb-active # Set this path - cache_location: /data/loki/tsdb-cache # Set this path filesystem: - directory: /data/loki/chunks - -compactor: - working_directory: /data/loki/boltdb-shipper-compactor - retention_enabled: true - delete_request_store: filesystem # Added this line - + directory: /tmp/loki/chunks limits_config: reject_old_samples: true reject_old_samples_max_age: 168h