Emit a metrics datapoint if bench-tps terminates

This commit is contained in:
Michael Vines 2018-07-25 15:44:07 -07:00 committed by Grimes
parent 5fa072cf16
commit 1b79fe73a1
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ client_start() {
if [[ \$threadCount -gt 4 ]]; then threadCount=4; fi; \
tmux new -s solana -d \" \
/snap/bin/solana.bench-tps $SOLANA_NET_URL $fullnode_count --loop -s 600 --sustained -t \$threadCount 2>&1 | tee /tmp/solana.log; \
echo 'https://metrics.solana.com:8086/write?db=${INFLUX_DATABASE}&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}' \
| xargs curl -XPOST --data-binary 'testnet-deploy,name=$netName clientexit=1'; \
echo Error: bench-tps should never exit; \
bash \
\"; \