about summary refs log tree commit diff
path: root/hosts/common/server
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/common/server')
-rw-r--r--hosts/common/server/default.nix7
-rw-r--r--hosts/common/server/monitoring.nix12
2 files changed, 19 insertions, 0 deletions
diff --git a/hosts/common/server/default.nix b/hosts/common/server/default.nix
new file mode 100644
index 0000000..2986f66
--- /dev/null
+++ b/hosts/common/server/default.nix
@@ -0,0 +1,7 @@
+{ config, pkgs, lib, ... }:
+
+{
+  imports = [
+    ./monitoring.nix
+  ];
+}
diff --git a/hosts/common/server/monitoring.nix b/hosts/common/server/monitoring.nix
new file mode 100644
index 0000000..a893721
--- /dev/null
+++ b/hosts/common/server/monitoring.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, lib, ... }:
+
+{
+  services.prometheus = {
+    exporters = {
+      node = {
+        enable = true;
+        enabledCollectors = [ "systemd" ];
+      };
+    };
+  };
+}