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

View file

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