Skip to content

Commit

Permalink
tests/loki: temporarily patch broken upstream conf
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Dec 18, 2024
1 parent 187485e commit 1fb3d3a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nixos/tests/loki.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1fb3d3a

Please sign in to comment.