From 30190e12ebe2732494c1ae734cc950eb2aa4a8af Mon Sep 17 00:00:00 2001 From: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:39:01 +0200 Subject: [PATCH] Support for metrics port configuration --- run_tester_node.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run_tester_node.sh b/run_tester_node.sh index 1daf799..aef83b7 100755 --- a/run_tester_node.sh +++ b/run_tester_node.sh @@ -30,6 +30,7 @@ if [ "${FUNCTION}" = "SENDER" ]; then SERIVCE_NODE_ADDR=${LIGHTPUSH_SERVICE_PEER:-${LIGHTPUSH_BOOTSTRAP:-}} NODE_ARG=${LIGHTPUSH_SERVICE_PEER:+--service-node="${LIGHTPUSH_SERVICE_PEER}"} NODE_ARG=${NODE_ARG:---bootstrap-node="${LIGHTPUSH_BOOTSTRAP}"} + METRICS_PORT=--metrics-port="${PUBLISHER_METRICS_PORT:-8003}" fi if [ "${FUNCTION}" = "RECEIVER" ]; then @@ -37,6 +38,7 @@ if [ "${FUNCTION}" = "RECEIVER" ]; then SERIVCE_NODE_ADDR=${FILTER_SERVICE_PEER:-${FILTER_BOOTSTRAP:-}} NODE_ARG=${FILTER_SERVICE_PEER:+--service-node="${FILTER_SERVICE_PEER}"} NODE_ARG=${NODE_ARG:---bootstrap-node="${FILTER_BOOTSTRAP}"} + METRICS_PORT=--metrics-port="${RECEIVER_METRICS_PORT:-8003}" fi if [ -z "${SERIVCE_NODE_ADDR}" ]; then @@ -98,4 +100,5 @@ exec "${BINARY_PATH}"\ ${FUNCTION}\ ${START_PUBLISHING_AFTER}\ ${MIN_MESSAGE_SIZE}\ - ${MAX_MESSAGE_SIZE} \ No newline at end of file + ${MAX_MESSAGE_SIZE}\ + ${METRICS_PORT} \ No newline at end of file