From f7f116a9a8468f0bb85277ae0641658cbee102f2 Mon Sep 17 00:00:00 2001 From: kat witch Date: Mon, 3 May 2021 22:09:32 +0100 Subject: [PATCH] services/prometheus: Harvest dht22 over ygg --- services/prometheus.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/prometheus.nix b/services/prometheus.nix index e6414851..c8eb07a7 100644 --- a/services/prometheus.nix +++ b/services/prometheus.nix @@ -11,7 +11,12 @@ let in { services.prometheus = { enable = true; - scrapeConfigs = mapAttrsToList (hostName: prom: { + scrapeConfigs = [ + { + job_name = "boline"; + static_configs = [{ targets = [ "boline.net.kittywit.ch:8002" ];}]; + } + ] ++ mapAttrsToList (hostName: prom: { job_name = hostName; static_configs = [{ targets = [ "${hostName}.net.kittywit.ch:${toString prom.port}" ];