diff --git a/script/start_rpc_service.sh b/script/start_rpc_service.sh index eb3d21214..628f63ac6 100644 --- a/script/start_rpc_service.sh +++ b/script/start_rpc_service.sh @@ -76,7 +76,7 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do list_to_string ${portList} service_ports=($ports_array) - portList2=$(cat $config_path | grep pushPrometheusPort | awk -F '[:]' '{print $NF}') + portList2=$(cat $config_path | grep ${service_prometheus_port_name[$i]} | awk -F '[:]' '{print $NF}') list_to_string $portList2 prome_ports=($ports_array) #Start related rpc services based on the number of ports