File tree 4 files changed +24
-60
lines changed
4 files changed +24
-60
lines changed Original file line number Diff line number Diff line change 1
- { ... } :
1
+ { pkgs , ... } :
2
2
3
3
{
4
4
imports = [
16
16
./exporters/owncast.nix
17
17
./exporters/postgresql.nix
18
18
./exporters/rasdaemon.nix
19
- ./exporters/r13y.nix
20
- ./exporters/rfc39.nix
21
19
./exporters/zfs.nix
22
20
] ;
23
21
40
38
"--web.external-url=https://prometheus.nixos.org/"
41
39
] ;
42
40
globalConfig . scrape_interval = "15s" ;
41
+
42
+ ruleFiles = [
43
+ ( pkgs . writeText "up.rules" (
44
+ builtins . toJSON {
45
+ groups = [
46
+ {
47
+ name = "up" ;
48
+ rules = [
49
+ {
50
+ alert = "NotUp" ;
51
+ expr = ''
52
+ up == 0
53
+ '' ;
54
+ for = "10m" ;
55
+ labels . severity = "warning" ;
56
+ annotations . summary = "scrape job {{ $labels.job }} is failing on {{ $labels.instance }}" ;
57
+ }
58
+ ] ;
59
+ }
60
+ ] ;
61
+ }
62
+ ) )
63
+ ] ;
43
64
} ;
44
65
}
Original file line number Diff line number Diff line change 36
36
scheme = "https" ;
37
37
static_configs = [ { targets = [ "hydra.nixos.org:443" ] ; } ] ;
38
38
}
39
- {
40
- job_name = "hydra_notify" ;
41
- metrics_path = "/metrics" ;
42
- scheme = "http" ;
43
- static_configs = [ { targets = [ "hydra.nixos.org:9199" ] ; } ] ;
44
- }
45
39
{
46
40
job_name = "hydra_queue_runner" ;
47
41
metrics_path = "/metrics" ;
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments