updated probe-loop.sh
This commit is contained in:
@@ -146,10 +146,11 @@ data:
|
|||||||
mv "$SHARED/.metrics.tmp" "$SHARED/metrics"
|
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 \
|
timeout "$(( $3 + 25 ))" irtt client -i "$IRTT_INTERVAL" -d "${3}s" -q $HMAC_OPT \
|
||||||
-o - "${HETZNER}:${IRTT_PORT}" 2>/dev/null \
|
-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() {
|
run_tput() {
|
||||||
|
|||||||
Reference in New Issue
Block a user