From 647b474d88cf6fe227fda749b55618d0e67be36f Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mar 25 2024 12:51:23 +0000 Subject: Merge branch 'crameleon/prometheus-lint-fatal' into 'production' test_prometheus: fail on linting errors See merge request infra/salt!1601 --- diff --git a/bin/test_prometheus.sh b/bin/test_prometheus.sh index 786d7f0..8a9b013 100755 --- a/bin/test_prometheus.sh +++ b/bin/test_prometheus.sh @@ -55,7 +55,7 @@ gen_ssl () { check_prometheus () { logfile="$1" - if ! mispipe 'promtool check config /etc/prometheus/prometheus.yml' "tee -a $logfile" + if ! mispipe 'promtool check config --lint-fatal /etc/prometheus/prometheus.yml' "tee -a $logfile" then echo 'Configuration is invalid' | tee -a "$logfile" return 1