diff options
| author | Kleidi Bujari <mail@4kb.net> | 2026-10-03 19:56:13 -0700 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2026-10-03 20:59:26 -0700 |
| commit | 0d15a4d19f7925be328c2d24214a11e5ac541c40 (patch) | |
| tree | ff75c552989cec4651f941126628a3702f6c6bcf /modules/xnet/monitoring/default.nix | |
| parent | 16918d62b34b7e4d7817837057b88acb44e4f63c (diff) | |
| download | depot-0d15a4d19f7925be328c2d24214a11e5ac541c40.tar.gz depot-0d15a4d19f7925be328c2d24214a11e5ac541c40.tar.bz2 depot-0d15a4d19f7925be328c2d24214a11e5ac541c40.zip | |
nixfmt formatting pass
Diffstat (limited to 'modules/xnet/monitoring/default.nix')
| -rw-r--r-- | modules/xnet/monitoring/default.nix | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/modules/xnet/monitoring/default.nix b/modules/xnet/monitoring/default.nix index eed4963..20566d3 100644 --- a/modules/xnet/monitoring/default.nix +++ b/modules/xnet/monitoring/default.nix @@ -9,7 +9,6 @@ in { imports = [ ./grafana.nix ]; - config = { services.prometheus = { enable = config.xnet.monitoring.hostGrafana; @@ -19,7 +18,10 @@ in node = { enable = true; openFirewall = true; - enabledCollectors = [ "processes" "systemd" ]; + enabledCollectors = [ + "processes" + "systemd" + ]; }; # systemd = { @@ -39,20 +41,29 @@ in scrapeConfigs = let - hosts = [ "iridium" "radon" ]; + hosts = [ + "iridium" + "radon" + ]; in - [{ - job_name = "node"; - static_configs = [{ - targets = map (h: "${h}:${toString exporters.node.port}") hosts; - }]; - } + [ + { + job_name = "node"; + static_configs = [ + { + targets = map (h: "${h}:${toString exporters.node.port}") hosts; + } + ]; + } { job_name = "smartctl"; - static_configs = [{ - targets = map (h: "${h}:${toString exporters.smartctl.port}") hosts; - }]; - }]; + static_configs = [ + { + targets = map (h: "${h}:${toString exporters.smartctl.port}") hosts; + } + ]; + } + ]; }; }; } |
