12 lines
317 B
Nix
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 ];
|
|
}
|