mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-21 03:40:39 +00:00
prometheus hotfix
This commit is contained in:
+2
-2
@@ -419,8 +419,8 @@ unset IFS
|
|||||||
|
|
||||||
# Run the prometheus exporter function
|
# Run the prometheus exporter function
|
||||||
if [[ -n "${CollectorTextFileDirectory:-}" ]]; then
|
if [[ -n "${CollectorTextFileDirectory:-}" ]]; then
|
||||||
if type -t send_notification &>/dev/null; then
|
if type -t prometheus_exporter &>/dev/null; then
|
||||||
prometheus_exporter ${#NoUpdates[@]:-} ${#GotUpdates[@]:-} ${#GotErrors[@]:-}
|
prometheus_exporter ${#NoUpdates[@]} ${#GotUpdates[@]} ${#GotErrors[@]}
|
||||||
else
|
else
|
||||||
printf "%s\n" "Could not source prometheus exporter function."
|
printf "%s\n" "Could not source prometheus exporter function."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user