Scrape domain expiration dates in Prometheus
Martin Weinelt committed
Apr 14, 2023 at 16:17 UTC
1ec416acbb7faa8f42f9d078ccfc6e28bf7c7cc1
1 file changed
+30
delft/eris.nix
+30
@@ -106,6 +106,11 @@ in
106
"--web.external-url=https://monitoring.nixos.org/prometheus/"
107
];
108
109
+ exporters.domain = {
110
+ enable = true;
111
+ listenAddress = "localhost";
112
+ };
113
+
114
exporters.blackbox = {
115
enable = true;
116
listenAddress = "127.0.0.1";
@@ -420,6 +425,31 @@ in
425
}
426
];
427
}
428
+ {
429
+ # https://github.com/caarlos0/domain_exporter#configuration
430
+ job_name = "domain";
431
+ metrics_path = "/probe";
432
+ relabel_configs = [
433
+ {
434
+ source_labels = [ "__address__" ];
435
+ target_label = "__param_target";
436
+ }
437
+ {
438
+ target_label = "__address__";
439
+ replacement = "localhost:9222";
440
+ }
441
+ ];
442
+ static_configs = [
443
+ {
444
+ targets = [
445
+ "nix.ci"
446
+ "nix.dev"
447
+ "nixos.org"
448
+ "ofborg.org"
449
+ ];
450
+ }
451
+ ];
452
+ }
453
{
454
job_name = "fastly";
455
metrics_path = "/metrics";