From 1b79fe73a19fbc2e70ae5be866c1ab2649728629 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 25 Jul 2018 15:44:07 -0700 Subject: [PATCH] Emit a metrics datapoint if bench-tps terminates --- ci/testnet-deploy.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/testnet-deploy.sh b/ci/testnet-deploy.sh index 4f35bc695a..b46d9f52d4 100755 --- a/ci/testnet-deploy.sh +++ b/ci/testnet-deploy.sh @@ -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 \ \"; \