aboutsummaryrefslogtreecommitdiff
path: root/modules/monitoring/node-exporter.nix
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2025-07-31 15:32:46 +0200
committerMax Audron <audron@cocaine.farm>2025-07-31 15:32:46 +0200
commit4fcbf49cbed4b5cccb837045bde898605d620f65 (patch)
treeaf2e6439bccc10763cb79d4d9affca878993c2b6 /modules/monitoring/node-exporter.nix
parenttry to run authentik natively (diff)
add more monitoring exporters and scrapers
Diffstat (limited to '')
-rw-r--r--modules/monitoring/node-exporter.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/monitoring/node-exporter.nix b/modules/monitoring/node-exporter.nix
new file mode 100644
index 0000000..1b7481d
--- /dev/null
+++ b/modules/monitoring/node-exporter.nix
@@ -0,0 +1,31 @@
+{ self, config, lib, pkgs, ... }:
+
+with self.lib.nginx;
+{
+ services.prometheus = {
+ exporters = {
+ node = {
+ enable = true;
+ enabledCollectors = [ "systemd" ];
+ };
+
+ zfs = {
+ enable = true;
+ };
+
+ nginx = {
+ enable = true;
+ };
+
+ smartctl = {
+ enable = true;
+ };
+ };
+ };
+
+ services.nginx.statusPage = true;
+
+ services.udev.extraRules = ''
+ SUBSYSTEM=="nvme", KERNEL=="nvme[0-9]*", GROUP="disk"
+ '';
+}