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}";
|
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" ]; }]; }];
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue