prometheus hotfix

This commit is contained in:
mag37 2025-04-09 18:21:07 +02:00 committed by GitHub
parent 3a8571c625
commit 0ea33366e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -419,8 +419,8 @@ unset IFS
# Run the prometheus exporter function
if [[ -n "${CollectorTextFileDirectory:-}" ]]; then
if type -t send_notification &>/dev/null; then
prometheus_exporter ${#NoUpdates[@]:-} ${#GotUpdates[@]:-} ${#GotErrors[@]:-}
if type -t prometheus_exporter &>/dev/null; then
prometheus_exporter ${#NoUpdates[@]} ${#GotUpdates[@]} ${#GotErrors[@]}
else
printf "%s\n" "Could not source prometheus exporter function."
fi