From e9d2e77028e9c76c5a886edc36bc1980a579982d Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Wed, 15 Feb 2023 21:13:23 +0100 Subject: [PATCH] Moni: Read Blackbox targets as JSON Use uniform JSON target files instead of a JSON/YAML mix. Signed-off-by: Georg Pfuetzenreuter --- pillar/id/moni_lysergic_dev.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillar/id/moni_lysergic_dev.sls b/pillar/id/moni_lysergic_dev.sls index 877ea5b..21e1dfe 100644 --- a/pillar/id/moni_lysergic_dev.sls +++ b/pillar/id/moni_lysergic_dev.sls @@ -29,7 +29,7 @@ prometheus: params: module: [http_2xx] file_sd_configs: - - files: ['/etc/prometheus/targets/blackbox-2xx*.yml'] + - files: ['/etc/prometheus/targets/blackbox-2xx*.json'] relabel_configs: - source_labels: [__address__] target_label: __param_target @@ -43,7 +43,7 @@ prometheus: params: module: [http_3xx] file_sd_configs: - - files: ['/etc/prometheus/targets/blackbox-3xx*.yml'] + - files: ['/etc/prometheus/targets/blackbox-3xx*.json'] relabel_configs: - source_labels: [__address__] target_label: __param_target