From 9389271aa7f11c13a0e542060e6b5152d44cc0a7 Mon Sep 17 00:00:00 2001 From: Connor Catlett Date: Tue, 2 Jul 2024 18:19:07 +0000 Subject: [PATCH] Only collect metrics in Prow Signed-off-by: Connor Catlett --- hack/e2e/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/e2e/run.sh b/hack/e2e/run.sh index 6332da02ec..86cff248d2 100755 --- a/hack/e2e/run.sh +++ b/hack/e2e/run.sh @@ -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" \