feat: add node exporter

This commit is contained in:
Katharina Heidenreich 2026-04-11 13:09:38 +02:00
parent a28c2b5563
commit 3f517bbe7f
3 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{ config, pkgs, lib, ... }:
let
serv = import ../config/services.nix;
in {
services.prometheus.exporters.node = {
enable = true;
port = serv."metric-exporter".port;
enabledCollectors = serv."metric-exporter".collectors;
};
networking.firewall.allowedTCPPorts = [ serv."metric-exporter".port ];
}