aboutsummaryrefslogblamecommitdiff
path: root/modules/services/monitoring/node-exporter.nix
blob: a205bba9c00b83ceb3b3284429302800005bfcdf (plain) (tree)
1
2
3
4
5
                           
                                                      

  
                                                            













                                                                   
{ config, pkgs, lib, ... }:
let cfg = config.my.services.monitoring.node-exporter;
in
{
  options.my.services.monitoring.node-exporter = with lib; {
    enable = mkEnableOption "Prometheus metrics exporter";
  };

  config = lib.mkIf cfg.enable {
    services.prometheus = {
      exporters = {
        node = {
          enable = true;
          enabledCollectors = [ "tcpstat" "systemd" "interrupts" ];
        };
      };
    };
  };
}