updated probe-loop.sh

This commit is contained in:
2026-06-07 12:50:41 +02:00
parent 40f5532570
commit 754564167f
+3 -2
View File
@@ -146,10 +146,11 @@ data:
mv "$SHARED/.metrics.tmp" "$SHARED/metrics"
}
run_irtt() { # $1 condition $2 outfile $3 duration(seconds)
run_irtt() {
timeout "$(( $3 + 25 ))" irtt client -i "$IRTT_INTERVAL" -d "${3}s" -q $HMAC_OPT \
-o - "${HETZNER}:${IRTT_PORT}" 2>/dev/null \
| python3 /scripts/irtt_to_prom.py "$1" "$IRTT_TARGET" > "$2"
| python3 /scripts/irtt_to_prom.py "$1" "$IRTT_TARGET" > "$2.tmp"
mv "$2.tmp" "$2"
}
run_tput() {