about summary refs log tree commit diff
path: root/modules/services/metrics-exporter/default.nix
blob: f489f7854f57467b0287c952de79554f440d4d74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, pkgs, lib, ... }:
let cfg = config.my.services.metrics-exporter;
in
{
  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" ];
        };
      };
    };
  };
}