From d986c279e04b014c382facc5cd23ea3fd673f431 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 14 Sep 2024 20:28:26 +0530 Subject: [PATCH] rico0: scrape metrics from caddy --- hosts/rico0/services/apps/prometheus.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/rico0/services/apps/prometheus.nix b/hosts/rico0/services/apps/prometheus.nix index 69ab5b8..3e63ca7 100644 --- a/hosts/rico0/services/apps/prometheus.nix +++ b/hosts/rico0/services/apps/prometheus.nix @@ -26,6 +26,17 @@ in } ]; scrapeConfigs = [ + { + job_name = "caddy"; + metrics_path = "/caddy-metrics"; + static_configs = [ + { targets = [ "rico0.labs.adtya.xyz" ]; } + { targets = [ "rico1.labs.adtya.xyz" ]; } + { targets = [ "rico2.labs.adtya.xyz" ]; } + { targets = [ "wynne.labs.adtya.xyz" ]; } + { targets = [ "layne.labs.adtya.xyz" ]; } + ]; + } { job_name = "postgres"; scheme = "https";