proxy/services/node-exporter.nix
2026-04-11 13:09:32 +02:00

13 lines
350 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;
listenAddress = "127.0.0.1";
};
networking.firewall.allowedTCPPorts = [ serv."metric-exporter".port ];
}