summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-02-11 19:40:58 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-02-11 19:40:58 +0100
commite02fe27f00d899dc2c4cebc12d4679174ed512a9 (patch)
tree930c25e1fac61f6cb58b5014a4be419286fa5269
parentforgot lib prefix (diff)
downloadRory-Open-Architecture-e02fe27f00d899dc2c4cebc12d4679174ed512a9.tar.xz
Add prometheus node exporter
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
-rw-r--r--modules/base-server.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/base-server.nix b/modules/base-server.nix
index 41e58a4..4579496 100644
--- a/modules/base-server.nix
+++ b/modules/base-server.nix
@@ -46,7 +46,21 @@
       extraConfig = ''
         MaxAuthTries 32
         '';
-    };	
+    };
+    prometheus = {
+      exporters = {
+        node = {
+          enable = true;
+          port = 9100;
+          enabledCollectors = [
+            "logind"
+            "systemd"
+          ];
+          disabledCollectors = [
+            #"textfile"
+          ];
+        };
+      };
   };
   security.sudo.wheelNeedsPassword = false;
   nixpkgs.config.allowUnfree = true;