metrics: Add domain monitoring

This commit is contained in:
Tristan Daniël Maat 2023-10-07 03:58:33 +02:00
parent 3de03a32ac
commit eb539f6ee7
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -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"];