victoriametrics: fix vmalert crash by adding notifier.blackhole
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled

vmalert requires either a notifier URL or -notifier.blackhole when
alerting rules are present. Add blackhole flag for parallel operation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 00:31:53 +01:00
parent ef8eeaa2f5
commit 63cf690598

View File

@@ -175,9 +175,10 @@ in
enable = true; enable = true;
settings = { settings = {
"datasource.url" = "http://localhost:8428"; "datasource.url" = "http://localhost:8428";
# Notifier disabled during parallel operation to prevent duplicate alerts # Blackhole notifications during parallel operation to prevent duplicate alerts.
# Uncomment after cutover from monitoring01: # Replace with notifier.url after cutover from monitoring01:
# "notifier.url" = [ "http://localhost:9093" ]; # "notifier.url" = [ "http://localhost:9093" ];
"notifier.blackhole" = true;
"rule" = [ ../monitoring/rules.yml ]; "rule" = [ ../monitoring/rules.yml ];
}; };
}; };