Skip to content

Commit

Permalink
Only collect metrics in Prow
Browse files Browse the repository at this point in the history
Signed-off-by: Connor Catlett <[email protected]>
  • Loading branch information
ConnorJC3 committed Jul 3, 2024
1 parent 6015f5d commit 9389271
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ else
done <<<"${PODS}"
fi

if [[ "${COLLECT_METRICS}" == true ]]; then
# Collect periodic performance metrics - this should only run in Prow
if [[ "${COLLECT_METRICS}" == true ]] && [ -n "${PROW_JOB_ID:-}" ]; then
metrics_collector "$KUBECONFIG" \
"$AWS_ACCOUNT_ID" \
"$AWS_REGION" \
Expand Down

0 comments on commit 9389271

Please sign in to comment.