From 1a0d84ca4b664cd0221b2267f13991a0414b3f3e Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Fri, 8 Nov 2024 09:06:11 +0000 Subject: [PATCH] Remove boltdb index and use filesystem, tweak loki compactor and use defaults for the ingester --- config/loki/APKBUILD | 2 +- config/loki/config.yaml | 27 ++++++++++++++------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/config/loki/APKBUILD b/config/loki/APKBUILD index 7f00478..fab7d1a 100644 --- a/config/loki/APKBUILD +++ b/config/loki/APKBUILD @@ -15,5 +15,5 @@ package() { } sha512sums=" -3a01abcaf0f28017d907a691ecd719563d51019d5d0715ea2835d486b3e000a276e3651e6d974c3b4afc7d18e3ed953b0ca9b9b9571a6072d73cae407da8d717 config.yaml +ddfdb3a89e0dccc93edbd2bc8f6aa89c2578833299234aec99ebf9457fde7ac03e719166de1033d05c36cebeaec371021a7fd7d347af9773a9fb13339e4be918 config.yaml " diff --git a/config/loki/config.yaml b/config/loki/config.yaml index 1347c59..8a4e232 100644 --- a/config/loki/config.yaml +++ b/config/loki/config.yaml @@ -5,16 +5,12 @@ server: http_listen_port: 7553 register_instrumentation: true -ingester: - lifecycler: - address: 127.0.0.1 - ring: - kvstore: - store: inmemory - replication_factor: 1 - final_sleep: 0s - chunk_idle_period: 5m - chunk_retain_period: 30s +common: + path_prefix: /var/lib/loki + +compactor: + working_directory: /var/lib/loki/compactor + compaction_interval: 1h schema_config: configs: @@ -25,15 +21,20 @@ schema_config: index: prefix: index_ period: 168h + - from: 2024-10-07 + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: index_ + period: 24h storage_config: - boltdb: - directory: /var/lib/loki/index filesystem: directory: /var/lib/loki/chunks limits_config: enforce_metric_name: false reject_old_samples: true - reject_old_samples_max_age: 168h + reject_old_samples_max_age: 24h max_query_series: 10000