Add datapoints for leader/validator start

This commit is contained in:
Michael Vines 2018-09-07 12:28:50 -07:00
parent e51445d857
commit 1090254ba5
1 changed files with 3 additions and 1 deletions

View File

@ -242,9 +242,9 @@ start() {
SECONDS=0 SECONDS=0
declare leaderDeployTime= declare leaderDeployTime=
declare networkVersion=unknown
startLeader "$leaderIp" "$netLogDir/leader-$leaderIp.log" startLeader "$leaderIp" "$netLogDir/leader-$leaderIp.log"
leaderDeployTime=$SECONDS leaderDeployTime=$SECONDS
$metricsWriteDatapoint "testnet-deploy net-leader-started=1"
SECONDS=0 SECONDS=0
pids=() pids=()
@ -262,6 +262,7 @@ start() {
fi fi
done done
$metricsWriteDatapoint "testnet-deploy net-validators-started=1"
validatorDeployTime=$SECONDS validatorDeployTime=$SECONDS
sanity sanity
@ -274,6 +275,7 @@ start() {
$metricsWriteDatapoint "testnet-deploy net-start-complete=1" $metricsWriteDatapoint "testnet-deploy net-start-complete=1"
if [[ $deployMethod = "snap" ]]; then if [[ $deployMethod = "snap" ]]; then
declare networkVersion=unknown
IFS=\ read -r _ networkVersion _ < <( IFS=\ read -r _ networkVersion _ < <(
ssh "${sshOptions[@]}" "$leaderIp" \ ssh "${sshOptions[@]}" "$leaderIp" \
"snap info solana | grep \"^installed:\"" "snap info solana | grep \"^installed:\""