From cade9c0aca9db3b938ff7343a29756083b252147 Mon Sep 17 00:00:00 2001
From: Georg Pfuetzenreuter
Date: Wed, 15 Feb 2023 21:13:23 +0100
Subject: Moni: Read Blackbox targets as JSON

Use uniform JSON target files instead of a JSON/YAML mix.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
---
 pillar/id/moni_lysergic_dev.sls | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'pillar/id')

diff --git a/pillar/id/moni_lysergic_dev.sls b/pillar/id/moni_lysergic_dev.sls
index 2607654..2ebf296 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
-- 
cgit v1.2.3