From 1090254ba59864694c4c25ccba2993c4d8d99117 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 7 Sep 2018 12:28:50 -0700 Subject: [PATCH] Add datapoints for leader/validator start --- net/net.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/net.sh b/net/net.sh index 27bc60f514..3d733e424d 100755 --- a/net/net.sh +++ b/net/net.sh @@ -242,9 +242,9 @@ start() { SECONDS=0 declare leaderDeployTime= - declare networkVersion=unknown startLeader "$leaderIp" "$netLogDir/leader-$leaderIp.log" leaderDeployTime=$SECONDS + $metricsWriteDatapoint "testnet-deploy net-leader-started=1" SECONDS=0 pids=() @@ -262,6 +262,7 @@ start() { fi done + $metricsWriteDatapoint "testnet-deploy net-validators-started=1" validatorDeployTime=$SECONDS sanity @@ -274,6 +275,7 @@ start() { $metricsWriteDatapoint "testnet-deploy net-start-complete=1" if [[ $deployMethod = "snap" ]]; then + declare networkVersion=unknown IFS=\ read -r _ networkVersion _ < <( ssh "${sshOptions[@]}" "$leaderIp" \ "snap info solana | grep \"^installed:\""