From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/nixos/node-exporter.nix | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 modules/nixos/node-exporter.nix (limited to 'modules/nixos/node-exporter.nix') diff --git a/modules/nixos/node-exporter.nix b/modules/nixos/node-exporter.nix deleted file mode 100644 index 8e76903..0000000 --- a/modules/nixos/node-exporter.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - config, - lib, - this, - ... -}: -with lib; -let - cfg = config.nixfiles.modules.node-exporter; -in -{ - options.nixfiles.modules.node-exporter.enable = mkEnableOption "Prometheus Node Exporter"; - - config = mkIf cfg.enable { - services.prometheus.exporters.node = { - enable = true; - listenAddress = mkDefault this.wireguard.ipv4.address; - port = 9100; - enabledCollectors = [ - "buddyinfo" - "cgroups" - "ethtool" - "interrupts" - "ksmd" - "lnstat" - "logind" - "mountstats" - "network_route" - "processes" - "qdisc" - "systemd" - "zoneinfo" - ]; - }; - }; -} -- cgit 1.4.1