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

@ -40,11 +40,6 @@ else
point_fields="${point_fields// /\\ }" # Escape spaces
point="job_stats,$point_tags $point_fields"
echo "Influx data point: $point"
if [[ -n $INFLUX_USERNAME && -n $INFLUX_PASSWORD ]]; then
echo "https://metrics.solana.com:8086/write?db=ci&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}" \
| xargs curl -XPOST --data-binary "$point"
else
echo Influx user credentials not found
fi
ci/metrics_write_datapoint.sh "$point"
fi