From eb539f6ee70d8f2dde0503dfa58e2e1f5c8d9087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sat, 7 Oct 2023 03:58:33 +0200 Subject: [PATCH] metrics: Add domain monitoring --- configuration/services/metrics/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configuration/services/metrics/default.nix b/configuration/services/metrics/default.nix index 0c02556..4086ef2 100644 --- a/configuration/services/metrics/default.nix +++ b/configuration/services/metrics/default.nix @@ -49,6 +49,19 @@ in { }; services.prometheus.exporters = { + domain = { + enable = true; + listenAddress = "127.0.0.1"; + extraFlags = let + conf.domains = [ + "tlater.net" + "tlater.com" + ]; + in [ + "--config=${yaml.generate "domains.yml" conf}" + ]; + }; + node = { enable = true; enabledCollectors = ["systemd"];