From f73d66273e668c55bf43e32bc05a8bcec7ec4476 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Wed, 18 Dec 2024 13:01:48 +0100 Subject: [PATCH] tests/loki: temporarily patch broken upstream conf --- nixos/tests/loki.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/tests/loki.nix b/nixos/tests/loki.nix index 81103a5ee4ca..8f5e23c3ac08 100644 --- a/nixos/tests/loki.nix +++ b/nixos/tests/loki.nix @@ -13,7 +13,12 @@ import ./make-test-python.nix ( { services.loki = { enable = true; - configFile = "${pkgs.grafana-loki.src}/cmd/loki/loki-local-config.yaml"; + + # FIXME(globin) revert to original file when upstream fix released + # configFile = "${pkgs.grafana-loki.src}/cmd/loki/loki-local-config.yaml"; + configFile = pkgs.runCommandNoCC "patched-loki-cfg.yml" { } '' + sed '/metric_aggregation/!b;n;/enable/d' "${pkgs.grafana-loki.src}/cmd/loki/loki-local-config.yaml" > $out + ''; }; services.promtail = { enable = true;