From 79af02d0c08a1352c56d942ddc528e6990a362de Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Mar 24 2024 23:58:10 +0000 Subject: test_prometheus: fail on linting errors Fail test on duplicate alert names. Signed-off-by: Georg Pfuetzenreuter --- 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