1
0
Fork 0

Fix nixpkgs watching

This commit is contained in:
Malte Brandy 2020-05-02 18:38:14 +02:00
parent 388983a780
commit 0316a85bb2
2 changed files with 7 additions and 2 deletions

View file

@ -26,7 +26,8 @@ let
job_name = "nixpkgs-${name}";
metrics_path = "/job/${name}/prometheus";
scheme = "https";
scrape_interval = "6h";
scrape_interval = "1h";
static_configs = [{ targets = [ "hydra.nixos.org" ]; }];
};
watchNixpkgsHaskellPackage = name: [
(watchNixpkgsPackage
@ -120,7 +121,8 @@ in {
++ (watchNixpkgsHaskellPackage "releaser")
++ (watchNixpkgsHaskellPackage "hlint")
++ (watchNixpkgsHaskellPackage "cabal-fmt")
++ (watchNixpkgsHaskellPackage "relude");
++ (watchNixpkgsHaskellPackage "relude")
++ (watchNixpkgsHaskellPackage "taskwarrior");
alertmanagers =
[{ static_configs = [{ targets = [ "localhost:9093" ]; }]; }];
};

View file

@ -4,6 +4,9 @@ groups:
- alert: ProbeTimeout
expr: probe_success == 0
for: 60m
- alert: NixpkgsBuildFail
expr: hydra_job_failed == 1
for: 60m
- alert: node_down
expr: (up{name!="apollo"} == 0)
for: 5m