Moni: Read Blackbox targets as JSON
Some checks failed
ci/lysergic/push/pipeline Pipeline failed

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

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-02-15 21:13:23 +01:00
parent c5608946f5
commit 6843f5310a
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -29,7 +29,7 @@ prometheus:
params: params:
module: [http_2xx] module: [http_2xx]
file_sd_configs: file_sd_configs:
- files: ['/etc/prometheus/targets/blackbox-2xx*.yml'] - files: ['/etc/prometheus/targets/blackbox-2xx*.json']
relabel_configs: relabel_configs:
- source_labels: [__address__] - source_labels: [__address__]
target_label: __param_target target_label: __param_target
@ -43,7 +43,7 @@ prometheus:
params: params:
module: [http_3xx] module: [http_3xx]
file_sd_configs: file_sd_configs:
- files: ['/etc/prometheus/targets/blackbox-3xx*.yml'] - files: ['/etc/prometheus/targets/blackbox-3xx*.json']
relabel_configs: relabel_configs:
- source_labels: [__address__] - source_labels: [__address__]
target_label: __param_target target_label: __param_target