diff options
author | Martin Fischer <martin@push-f.com> | 2025-03-16 18:48:20 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-03-17 06:31:42 +0100 |
commit | 85354207b362b6b214f0620d7bd862519dcb4365 (patch) | |
tree | 98d6b5916512173948fd6ddc402b74e2a01ce0ec | |
parent | 2e1490682566a8670032c4765a50e625e11e6e32 (diff) |
refactor(tente): put scrapeConfigs before exporters
-rw-r--r-- | nixos/hosts/tente/monitoring.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/hosts/tente/monitoring.nix b/nixos/hosts/tente/monitoring.nix index 3916e74..41c59f3 100644 --- a/nixos/hosts/tente/monitoring.nix +++ b/nixos/hosts/tente/monitoring.nix @@ -50,12 +50,6 @@ in services.prometheus = { enable = true; - exporters.node = { - enable = true; - enabledCollectors = [ "systemd" ]; - port = cfg.prometheusNodeExporterPort; - }; - scrapeConfigs = [ { job_name = "node"; @@ -64,6 +58,12 @@ in }]; } ]; + + exporters.node = { + enable = true; + enabledCollectors = [ "systemd" ]; + port = cfg.prometheusNodeExporterPort; + }; }; services.loki = { |