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 <conncatl@amazon.com>
  • Loading branch information
ConnorJC3 committed Jul 2, 2024
1 parent 1a30368 commit c01bda4
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 c01bda4

Please sign in to comment.