-
-
Save darron/fc8f01aec8c3c3fc2223 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CURL='curl -s --connect-timeout 3 --max-time 59 -w %{time_connect},%{time_appconnect},%{time_pretransfer},%{time_redirect},%{time_starttransfer},%{time_total} -o /dev/null http://127.0.0.1:8500/v1/catalog/services' | |
while [ 1 ] | |
do | |
OUTPUT=$($CURL) | |
DATE=$(date --rfc-3339=seconds) | |
echo "$DATE,$OUTPUT" | tee -a logs.txt | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment