diff options
| author | Max Audron <audron@cocaine.farm> | 2025-07-31 15:32:46 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-07-31 15:32:46 +0200 |
| commit | 4fcbf49cbed4b5cccb837045bde898605d620f65 (patch) | |
| tree | af2e6439bccc10763cb79d4d9affca878993c2b6 /modules/monitoring/node-exporter.nix | |
| parent | try to run authentik natively (diff) | |
add more monitoring exporters and scrapers
Diffstat (limited to '')
| -rw-r--r-- | modules/monitoring/node-exporter.nix | 31 |
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" + ''; +} |
