Fix nixpkgs watching
This commit is contained in:
parent
388983a780
commit
0316a85bb2
2 changed files with 7 additions and 2 deletions
|
@ -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" ]; }]; }];
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue