add node exporter to all deployment systems

This commit is contained in:
oxapentane - 2023-05-04 17:00:51 +02:00
parent 3bf9093745
commit 310162c24f
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
2 changed files with 24 additions and 8 deletions

View File

@ -1,10 +1,12 @@
{
imports = [
./base.nix
./binary-cache.nix
./general-options.nix
./json.nix
./net.nix
./wg.nix
];
imports =
[
./base.nix
./binary-cache.nix
./general-options.nix
./json.nix
./net.nix
./wg.nix
./node-exporter.nix
];
}

View File

@ -0,0 +1,14 @@
{ config, ... }:
{
# metrics exporter
services.prometheus.exporters = {
node = {
enable = true;
port = 8119;
listenAddress = config.deployment-TLMS.net.wg.addr4;
enabledCollectors = [
"systemd"
];
};
};
}