Server: add prometheus with node exporter

This commit is contained in:
Toast 2025-01-08 13:25:27 +01:00
parent 710e431dad
commit a2bce9715d
2 changed files with 25 additions and 0 deletions

View file

@ -15,6 +15,7 @@
./caddy.nix
./rust_motd.nix
./adguard.nix
./prometheus.nix
./changedetection-io.nix
];
}

View file

@ -0,0 +1,24 @@
{...}: {
services.prometheus = {
enable = true;
enableReload = true;
exporters = {
node = {
enable = true;
enabledCollectors = ["systemd"];
listenAddress = "127.0.0.1";
port = 9002;
};
};
scrapeConfigs = [
{
job_name = "everest-node";
static_configs = [
{
targets = ["127.0.0.1:9002"];
}
];
}
];
};
}