From 3641f7c786ebed96b1083b63d817ba075a7edbbf Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 2 Jul 2025 12:40:35 +0300 Subject: [PATCH] Re-enabled loki --- nixosModules/eko.nix | 3 ++- nixosModules/loki.nix | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nixosModules/eko.nix b/nixosModules/eko.nix index 5540035..19115a5 100644 --- a/nixosModules/eko.nix +++ b/nixosModules/eko.nix @@ -66,7 +66,8 @@ # Enable metrics/logging grafana.enable = true; - loki.enable = false; + loki.enable = true; + services.alloy.enable = false; services.alloy.configPath = "/etc/alloy/config.alloy"; diff --git a/nixosModules/loki.nix b/nixosModules/loki.nix index 3cc4a5e..5c4f294 100644 --- a/nixosModules/loki.nix +++ b/nixosModules/loki.nix @@ -13,7 +13,7 @@ services.loki.configuration = { auth_enabled = false; - limits_config = { volume_enabled = true; }; + # limits_config = { volume_enabled = true; }; server = { http_listen_port = 3100; @@ -29,7 +29,7 @@ instance_interface_names = [ "ens3" "lo" ]; # added ens3 whichi s the interface in netcup replication_factor = 1; - path_prefix = "/var/lib/loki"; + path_prefix = "/tmp/loki"; }; schema_config = { @@ -49,7 +49,7 @@ storage_config = { filesystem = { - directory = "/var/lib/loki/chunks"; + directory = "/tmp/loki/chunks"; }; };