diff --git a/nixos/tests/loki.nix b/nixos/tests/loki.nix index 81103a5ee4cae..8f5e23c3ac080 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; diff --git a/pkgs/servers/monitoring/loki/default.nix b/pkgs/servers/monitoring/loki/default.nix index 5725c565662fb..f5b9cfdceeda8 100644 --- a/pkgs/servers/monitoring/loki/default.nix +++ b/pkgs/servers/monitoring/loki/default.nix @@ -10,14 +10,14 @@ }: buildGoModule rec { - version = "3.2.1"; + version = "3.3.1"; pname = "grafana-loki"; src = fetchFromGitHub { owner = "grafana"; repo = "loki"; rev = "v${version}"; - hash = "sha256-PhvXuRWpOA+5sPiTSDEwpZ8KEfV/UHM2W6RnG9z9Sp0="; + hash = "sha256-oibZFCuwHtg/A7AJfNqGKyRFhPLdOkX8uULx2rc7Fs8="; }; vendorHash = null;