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