aboutsummaryrefslogblamecommitdiff
path: root/modules/services/metrics-exporter/default.nix
blob: c3c471cec2ec538b3d535b50f4c04425c8c6884c (plain) (tree)
1
2
3
4
5
6

                                              

  

                               














                                                                   
{ config, pkgs, lib, ... }:
let cfg = config.my.services.metrics-exporter;
in
{
  imports = [ ./promtail.nix ];

  options.my.services.metrics-exporter = with lib; {
    enable = mkEnableOption "Prometheus metrics exporter";
  };

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