From e4f86ee823304cd277b2a78b08fddaa64ae267af Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 12 Sep 2022 23:46:28 +0800 Subject: [PATCH] add prome --- script/start_rpc_service.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/start_rpc_service.sh b/script/start_rpc_service.sh index d149b3cff..3e397cde0 100644 --- a/script/start_rpc_service.sh +++ b/script/start_rpc_service.sh @@ -79,13 +79,12 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do portList2=$(cat $config_path | grep ${service_prometheus_port_name[$i]} | awk -F '[:]' '{print $NF}') list_to_string $portList2 prome_ports=($ports_array) - echo $prome_ports #Start related rpc services based on the number of ports # for j in ${service_ports}; do for ((j = 0; j < ${#service_ports[*]}; j++)); do #Start the service in the background # ./${service_filename[$i]} -port $j & - cmd="./${service_filename[$i]} -port ${service_ports[$j]} -prometheus_port ${prome_ports[$j]}" + cmd="./${service_filename[$i]} -port ${service_ports[$j]} -prometheus-port ${prome_ports[$j]}" if [ $i -eq 0 -o $i -eq 1 ]; then cmd="./${service_filename[$i]} -port ${service_ports[$j]}" fi