From 1cb31430961be30bed9ec609a6d26587b4d363bc Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 20 Jun 2021 16:05:37 +0200 Subject: [PATCH] Let prometheus scrape temperature values from iot data --- hosts/monitoring-3/configuration.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/hosts/monitoring-3/configuration.nix b/hosts/monitoring-3/configuration.nix index dee48b5..a2f5648 100644 --- a/hosts/monitoring-3/configuration.nix +++ b/hosts/monitoring-3/configuration.nix @@ -91,6 +91,32 @@ in { } ]; } + { + job_name = "zimmer-temp"; + scrape_interval = "20s"; + scheme = "https"; + metrics_path = "/data/zimmer-temp/"; + static_configs = [ + { + targets = [ + "iot-data.clerie.de" + ]; + } + ]; + } + { + job_name = "outdoor-temp"; + scrape_interval = "20s"; + scheme = "https"; + metrics_path = "/data/outdoor-temp/"; + static_configs = [ + { + targets = [ + "iot-data.clerie.de" + ]; + } + ]; + } ]; };