From 2a46da37612ead9f23ab49b84f31cba7bebe72f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 24 May 2025 03:37:52 +0200 Subject: [PATCH] Add labmon to scrape config --- hosts/monitoring01/configuration.nix | 26 +++++++++++++++++++++++++- services/monitoring/prometheus.nix | 8 ++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/hosts/monitoring01/configuration.nix b/hosts/monitoring01/configuration.nix index ca22b15..e941943 100644 --- a/hosts/monitoring01/configuration.nix +++ b/hosts/monitoring01/configuration.nix @@ -87,7 +87,31 @@ Enabled = true; Address = "ca.home.2rjus.net:443"; Verify = true; - Duration = "1h"; + Duration = "12h"; + } + { + Enabled = true; + Address = "jelly.home.2rjus.net:443"; + Verify = true; + Duration = "12h"; + } + { + Enabled = true; + Address = "grafana.home.2rjus.net:443"; + Verify = true; + Duration = "12h"; + } + { + Enabled = true; + Address = "prometheus.home.2rjus.net:443"; + Verify = true; + Duration = "12h"; + } + { + Enabled = true; + Address = "alertmanager.home.2rjus.net:443"; + Verify = true; + Duration = "12h"; } ]; }; diff --git a/services/monitoring/prometheus.nix b/services/monitoring/prometheus.nix index 9f9d53a..ea1d852 100644 --- a/services/monitoring/prometheus.nix +++ b/services/monitoring/prometheus.nix @@ -191,6 +191,14 @@ } ]; } + { + job_name = "labmon"; + static_configs = [ + { + targets = [ "monitoring01.home.2rjus.net:9969" ]; + } + ]; + } ]; }; }