Remove prometheus hydra rules
This commit is contained in:
parent
7b95021da8
commit
8ba7684ccc
|
@ -17,7 +17,6 @@ in
|
|||
./grafana.nix
|
||||
./prometheus.nix
|
||||
./probes.nix
|
||||
./nixpkgs.nix
|
||||
];
|
||||
|
||||
services = {
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
watchNixpkgsPackage = name: branch: path:
|
||||
let job_name = "nixpkgs ${name} on ${branch}";
|
||||
in
|
||||
{
|
||||
inherit job_name;
|
||||
metrics_path = "/job/${path}/prometheus";
|
||||
scheme = "https";
|
||||
scrape_interval = "1h";
|
||||
scrape_timeout = "120s";
|
||||
static_configs = [{
|
||||
labels = {
|
||||
name = job_name;
|
||||
packageName = name;
|
||||
url = "https://hydra.nixos.org/job/${path}";
|
||||
alert_type = "nixpkgs";
|
||||
};
|
||||
targets = [ "hydra.nixos.org" ];
|
||||
}];
|
||||
};
|
||||
watchHaskellUnstable = name:
|
||||
watchNixpkgsPackage name "haskell-updates" "nixpkgs/haskell-updates/haskellPackages.${name}.x86_64-linux";
|
||||
watchedHaskellUpdatesPkgs = builtins.attrNames (pkgs.myHaskellPackages);
|
||||
in
|
||||
{
|
||||
services.prometheus.scrapeConfigs = map watchHaskellUnstable watchedHaskellUpdatesPkgs;
|
||||
}
|
|
@ -8,15 +8,8 @@ groups:
|
|||
severity: critical
|
||||
annotations:
|
||||
description: '{{ $labels.instance }} probe {{ $labels.job}} failed.'
|
||||
- alert: nixpkgs
|
||||
expr: hydra_job_failed == 1
|
||||
for: 2h
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
description: 'hydra build {{ $labels.packageName }} on nixpkgs branch {{ $labels.jobset }} failed.'
|
||||
- alert: node_down
|
||||
expr: 'up{flaky!="true",instance!="hydra.nixos.org:443"} == 0'
|
||||
expr: 'up{flaky!="true"} == 0'
|
||||
for: 5m
|
||||
labels:
|
||||
severity: critical
|
||||
|
|
Loading…
Reference in a new issue