Skip to content

Commit 633c89f

Browse files
committed
Add logging of metrics gathered raw output
1 parent f4cc1e2 commit 633c89f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hack/run-rollouts-manager-e2e-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ extract_metrics_data() {
3939

4040
curl http://localhost:8080/metrics -o "$TMP_DIR/rollouts-metric-endpoint-output.txt"
4141

42+
echo "* Metrics gathered raw output ---------------------------------------------------------------"
43+
cat "$TMP_DIR/rollouts-metric-endpoint-output.txt"
44+
echo "---------------------------------------------------------------------------------------------"
45+
4246
GET_REQUESTS=`cat "$TMP_DIR/rollouts-metric-endpoint-output.txt" | grep "rest_client_requests_total" | grep "GET" | rev | cut -d' ' -f1 | rev`
4347
PUT_REQUESTS=`cat "$TMP_DIR/rollouts-metric-endpoint-output.txt" | grep "rest_client_requests_total" | grep "PUT" | grep -v "409" | rev | cut -d' ' -f1 | rev`
4448
POST_REQUESTS=`cat "$TMP_DIR/rollouts-metric-endpoint-output.txt" | grep "rest_client_requests_total" | grep "POST" | rev | cut -d' ' -f1 | rev`

0 commit comments

Comments
 (0)