From 26d06a2ebfab67063be09e22d1ec4691093c11ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 13 Sep 2024 16:32:21 +0300 Subject: [PATCH] prometheus: import from weather exporter --- hosts/fwminex/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index a142c19..14cdd6e 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -361,6 +361,11 @@ in metrics_path = "/api/prometheus"; static_configs = [ { targets = [ "127.0.0.1:${toString myData.ports.hass}" ]; } ]; } + { + job_name = "weather"; + scrape_interval = "1m"; + static_configs = [ { targets = [ "127.0.0.1:${toString myData.ports.exporters.weather}" ]; } ]; + } { job_name = "vno1-vinc.vincentas.jakst"; static_configs = [ { targets = [ "${myData.hosts."vno1-vinc.vincentas.jakst".jakstIP}:9100" ]; } ];