From 6c59595a11b23a4483f73352c549b98e00de92e0 Mon Sep 17 00:00:00 2001 From: Ittihadyya Date: Fri, 20 Dec 2024 18:07:15 +0200 Subject: [PATCH] fuck it, no more fancy stuff, just do it like this --- services/monitoring/prometheus.mod.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/services/monitoring/prometheus.mod.nix b/services/monitoring/prometheus.mod.nix index 96a5089..b31459e 100644 --- a/services/monitoring/prometheus.mod.nix +++ b/services/monitoring/prometheus.mod.nix @@ -1,4 +1,4 @@ -{molecules, ...}:{ +{ universal.modules = [ { services.prometheus.exporters = { @@ -13,14 +13,6 @@ ]; glucose.modules = [ ({ - nixpkgs, - molecules, - ... - }: let - ip = i: "10.24.1.${toString i}"; - ips = builtins.mapAttrs (nixpkgs.lib.const ip) molecules; - ips' = builtins.mapAttrs (name: ip: "${ip}:6703") ips; - in { services.prometheus = { enable = true; port = 6750; @@ -31,7 +23,7 @@ job_name = "devices"; static_configs = [ { - targets = ips'; + targets = [ "10.24.1.4:6703" "10.24.1.9:6703" "10.24.1.16:6703" "10.24.1.225:6703" "10.24.1.196:6703" ]; } ]; }