diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-06 12:49:53 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-06 12:49:53 -0700 |
commit | f61e0fe45e4f237828df01ee3bacf4bae78fdcf0 (patch) | |
tree | 986fcf274ee755313a35431781acc0a646fe0700 /modules/services/metrics-exporter | |
parent | refactor traefik (diff) | |
download | world-f61e0fe45e4f237828df01ee3bacf4bae78fdcf0.tar.gz |
refactor transmission and metrics-exporter
Diffstat (limited to 'modules/services/metrics-exporter')
-rw-r--r-- | modules/services/metrics-exporter/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/services/metrics-exporter/default.nix b/modules/services/metrics-exporter/default.nix new file mode 100644 index 0000000..b461bd2 --- /dev/null +++ b/modules/services/metrics-exporter/default.nix @@ -0,0 +1,18 @@ +{ 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" ]; + }; + }; + }; + }; +} |