monitoring: added node-exporter

This commit is contained in:
eyjhb 2025-03-14 17:23:28 +01:00
parent d1911c28e8
commit d90283ae2c
Signed by: eyjhb
GPG key ID: 609F508E3239F920
2 changed files with 18 additions and 0 deletions

View file

@ -14,5 +14,6 @@
./mon-uptime-kuma.nix
./mon-searx.nix
./mon-nextcloud.nix
./mon-node-exporter.nix
];
}

View file

@ -0,0 +1,17 @@
{ config, lib, ... }:
{
services.prometheus.exporters.node = {
enable = true;
listenAddress = "localhost";
};
services.prometheus.scrapeConfigs = [
{
job_name = "node-exporter";
static_configs = [{
targets = [ "localhost:${builtins.toString config.services.prometheus.exporters.node.port}"];
}];
}
];
}