diff --git a/build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh b/build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh index c0f374b56927..9de70a68f92a 100755 --- a/build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh +++ b/build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh @@ -19,6 +19,8 @@ # BENCH_IGNORE_PACKAGES: comma-separated list of packages to exclude completely from listing and execution (default: none) # TEST_ARGS: additional arguments to pass to the test binary (default: none) # MICROBENCH_SLACK_TOKEN: token to use to post to slack (default: none) +# MICROBENCH_INFLUX_HOST: Influx host path to use to push results to InfluxDB (default: none) +# MICROBENCH_INFLUX_TOKEN: auth token to use to push results to InfluxDB (default: none) set -exuo pipefail @@ -163,12 +165,17 @@ if [ -d "$output_dir/experiment" ] && [ "$(ls -A "$output_dir/experiment")" ] \ # Set up slack token only if the build was triggered by TeamCity (not a manual run) if [ -n "${TRIGGERED_BUILD:-}" ]; then slack_token="${MICROBENCH_SLACK_TOKEN}" + influx_token="${MICROBENCH_INFLUX_TOKEN}" + influx_host="${MICROBENCH_INFLUX_HOST}" fi # Sheet description is in the form: `baseline` to `experiment` sheet_description="${name_arr[1]} -> ${name_arr[0]}" ./bin/roachprod-microbench compare "$output_dir/experiment" "$output_dir/baseline" \ ${slack_token:+--slack-token="$slack_token"} \ - --sheet-desc="$sheet_description" 2>&1 | tee "$output_dir/sheets.txt" + --sheet-desc="$sheet_description" \ + ${influx_token:+--influx-token="$influx_token"} \ + ${influx_host:+--influx-host="$influx_host"} \ + 2>&1 | tee "$output_dir/sheets.txt" else echo "No microbenchmarks were run. Skipping comparison." fi