Skip to content
Snippets Groups Projects
Verified Commit fbf49995 authored by Jan Kryštof's avatar Jan Kryštof
Browse files

towards metric-based monitoring

parent f80d2581
No related branches found
No related tags found
No related merge requests found
Pipeline #560568 passed
......@@ -106,8 +106,9 @@ check_mandatory_parameters SUITE_NAME TEST_NAME ENVIRONMENT PUSHGATEWAY_URL ELAP
# additional adjustments
PHASE=$([ $FLAG_TEAR_DOWN ] && echo "tear_down" || echo "test_run")
PUSHGATEWAY_URL="$PUSHGATEWAY_URL/metrics/job/e2e"
# prepare the prometheus
METRIC="e2e_test_delme{app=\"e2e\", environment=\"$ENVIRONMENT\", suite=\"$SUITE_NAME\", test=\"$TEST_NAME\", phase=\"$PHASE\"} $ELAPSED_TIME"
# prepare the metric representation the prometheus
METRIC="e2e_test{app=\"e2e\", environment=\"$ENVIRONMENT\", suite=\"$SUITE_NAME\", test=\"$TEST_NAME\", phase=\"$PHASE\"} $ELAPSED_TIME"
[[ $FLAG_DEBUG ]] && echo "debug: metric $METRIC"
if [[ $FLAG_DRY_RUN ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment