From 7bcc67f95d4bb4c91679ee87f23077d7dd4065c1 Mon Sep 17 00:00:00 2001 From: Turtle Date: Fri, 27 Aug 2021 14:06:07 +0800 Subject: [PATCH] fix(relup): get broker metrics --- .ci/fvt_tests/relup.lux | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.ci/fvt_tests/relup.lux b/.ci/fvt_tests/relup.lux index 516c2c33c..aa179c6cf 100644 --- a/.ci/fvt_tests/relup.lux +++ b/.ci/fvt_tests/relup.lux @@ -67,7 +67,7 @@ !./bin/emqx_ctl rules create 'SELECT * FROM "t/#"' '[{"name":"data_to_webserver", "params": {"$$resource": "resource:691c29ba"}}]' ?created ?SH-PROMPT - ?sleep 5 + !sleep 5 ?SH-PROMPT [shell emqx] @@ -77,6 +77,8 @@ !./bin/emqx_ctl rules list ?691c29ba ?SH-PROMPT + !./bin/emqx_ctl broker metrics | grep "messages.publish" + ???SH-PROMPT [shell bench] !cd $BENCH_PATH @@ -140,6 +142,11 @@ !sleep 30 ?SH-PROMPT +[shell emqx] + !./bin/emqx_ctl broker metrics | grep "messages.publish" + ???SH-PROMPT + +[shell bench] !curl --user admin:public --silent --show-error http://localhost:8081/api/v4/rules | jq --raw-output ".data[0].metrics[] | select(.node==\"emqx@127.0.0.1\").matched" ?300 ?SH-PROMPT