metrics: Add systemd monitoring

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

View file

@ -64,7 +64,6 @@ in {
node = {
enable = true;
enabledCollectors = ["systemd"];
listenAddress = "127.0.0.1";
};
@ -98,6 +97,16 @@ in {
})
config.services.nginx.virtualHosts;
};
systemd = {
enable = true;
listenAddress = "127.0.0.1";
extraFlags = [
# Disabled by default because only supported from systemd 235+
"--systemd.collector.enable-restart-count"
"--systemd.collector.enable-ip-accounting"
];
};
};
services.prometheus.local-exporters = {