Add data point for testnet startup and shutdown

This commit is contained in:
Michael Vines
2018-07-21 23:15:36 -07:00
parent d403808564
commit 5d065133ef
3 changed files with 25 additions and 7 deletions

View File

@@ -118,6 +118,10 @@ if ! $ROLLING_UPDATE; then
wait
fi
# Add "network stopping" datapoint
netName=${SOLANA_NET_URL%testnet.solana.com}
netName=${netName:0:8}
ci/metrics_write_datapoint.sh "testnet-deploy,name=\"$netName\" stop=1"
client_run() {
declare message=$1
@@ -235,4 +239,7 @@ client_run \
tail /tmp/solana.log; \
"
# Add "network started" datapoint
ci/metrics_write_datapoint.sh "testnet-deploy,name=\"$netName\" start=1"
exit 0