pi/services/node-exporter.nix
2026-04-11 12:53:19 +02:00

12 lines
317 B
Nix

{ 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 ];
}