From ac871963ddd5ff907396be4bbd3fb4473f0db9cb Mon Sep 17 00:00:00 2001
From: Florian Sesser <florian@private.storage>
Date: Wed, 2 Feb 2022 22:33:09 +0000
Subject: [PATCH] Make the Loki that ships with NixOS 21.11 work

---
 nixos/modules/monitoring/exporters/promtail.nix | 2 +-
 nixos/modules/monitoring/server/loki.nix        | 5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/nixos/modules/monitoring/exporters/promtail.nix b/nixos/modules/monitoring/exporters/promtail.nix
index b52df5ce..b068d9ee 100644
--- a/nixos/modules/monitoring/exporters/promtail.nix
+++ b/nixos/modules/monitoring/exporters/promtail.nix
@@ -13,7 +13,7 @@
     server = {
       http_listen_port = 9080; # Using /metrics for health check
       grpc_listen_address = "127.0.0.1"; # unused, but no option to turn it off.
-      grpc_listen_port = 9095; # unused, but no option to turn it off.
+      grpc_listen_port = 9094; # unused, but no option to turn it off.
     };
 
     clients = [{
diff --git a/nixos/modules/monitoring/server/loki.nix b/nixos/modules/monitoring/server/loki.nix
index b137d6e3..bcef2fe9 100644
--- a/nixos/modules/monitoring/server/loki.nix
+++ b/nixos/modules/monitoring/server/loki.nix
@@ -24,7 +24,6 @@
 
         ingester = {
           lifecycler = {
-            interface_names = [ "monitoringvpn"];
             ring = {
               kvstore = {
                 store = "inmemory";
@@ -59,10 +58,6 @@
           };
         };
 
-        chunk_store_config = {
-          max_look_back_period = "336h"; # two weeks
-        };
-
         table_manager = {
           retention_deletes_enabled = true;
           retention_period = "336h"; # two weeks
-- 
GitLab