about summary refs log tree commit diff
path: root/modules/node-exporter.nix
diff options
context:
space:
mode:
authorazahi <azat@bahawi.net>2025-03-12 20:17:13 +0300
committerazahi <azat@bahawi.net>2025-03-12 20:17:13 +0300
commitc81dc5a13b469c511fac6fa2390b70422d1b4da5 (patch)
tree4dab5909006ab5c25da6bd9fde6a714c7719ded7 /modules/node-exporter.nix
parent2025-02-17 (diff)
2025-03-12 HEAD master
Diffstat (limited to 'modules/node-exporter.nix')
-rw-r--r--modules/node-exporter.nix35
1 files changed, 0 insertions, 35 deletions
diff --git a/modules/node-exporter.nix b/modules/node-exporter.nix
deleted file mode 100644
index 5e0b9a1..0000000
--- a/modules/node-exporter.nix
+++ /dev/null
@@ -1,35 +0,0 @@
-{
-  config,
-  lib,
-  this,
-  ...
-}:
-let
-  cfg = config.nixfiles.modules.node-exporter;
-in
-{
-  options.nixfiles.modules.node-exporter.enable = lib.mkEnableOption "Prometheus Node Exporter";
-
-  config = lib.mkIf cfg.enable {
-    services.prometheus.exporters.node = {
-      enable = true;
-      listenAddress = lib.mkDefault this.wireguard.ipv4.address;
-      port = 9100;
-      enabledCollectors = [
-        "buddyinfo"
-        "cgroups"
-        "ethtool"
-        "interrupts"
-        "ksmd"
-        "lnstat"
-        "logind"
-        "mountstats"
-        "network_route"
-        "processes"
-        "qdisc"
-        "systemd"
-        "zoneinfo"
-      ];
-    };
-  };
-}

Consider giving Nix/NixOS a try! <3