From 4ea84b04fa151d339c8f710c2578ca3448a72d70 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sun, 2 Apr 2023 08:54:06 -0400 Subject: [PATCH] loki.home.rekahsoft.ca: Setup long term storage for logs --- unguix/loki-home-rekahsoft-ca/docker-compose.yaml | 1 + unguix/loki-home-rekahsoft-ca/loki-config.yaml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/unguix/loki-home-rekahsoft-ca/docker-compose.yaml b/unguix/loki-home-rekahsoft-ca/docker-compose.yaml index 4aa517f..65f2faa 100644 --- a/unguix/loki-home-rekahsoft-ca/docker-compose.yaml +++ b/unguix/loki-home-rekahsoft-ca/docker-compose.yaml @@ -34,6 +34,7 @@ services: - "1514:1514" volumes: - /var/lib/loki/config:/mnt/config + - /var/lib/loki/data:/loki networks: net-bridge: diff --git a/unguix/loki-home-rekahsoft-ca/loki-config.yaml b/unguix/loki-home-rekahsoft-ca/loki-config.yaml index 574f8d6..c5d8f2b 100644 --- a/unguix/loki-home-rekahsoft-ca/loki-config.yaml +++ b/unguix/loki-home-rekahsoft-ca/loki-config.yaml @@ -15,7 +15,7 @@ ingester: chunk_retain_period: 30s max_transfer_retries: 0 wal: - dir: /tmp/wal + dir: /loki/wal schema_config: configs: @@ -29,10 +29,10 @@ schema_config: storage_config: boltdb: - directory: /tmp/loki/index + directory: /loki/index filesystem: - directory: /tmp/loki/chunks + directory: /loki/chunks limits_config: enforce_metric_name: false