mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
prome
This commit is contained in:
parent
a4fc493ea5
commit
30a0743c8c
@ -79,12 +79,13 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do
|
|||||||
portList2=$(cat $config_path | grep ${service_prometheus_port_name[$i]} | awk -F '[:]' '{print $NF}')
|
portList2=$(cat $config_path | grep ${service_prometheus_port_name[$i]} | awk -F '[:]' '{print $NF}')
|
||||||
list_to_string $portList2
|
list_to_string $portList2
|
||||||
prome_ports=($ports_array)
|
prome_ports=($ports_array)
|
||||||
|
echo $prome_ports
|
||||||
#Start related rpc services based on the number of ports
|
#Start related rpc services based on the number of ports
|
||||||
for j in ${service_ports}; do
|
for j in ${service_ports}; do
|
||||||
#Start the service in the background
|
#Start the service in the background
|
||||||
# ./${service_filename[$i]} -port $j &
|
# ./${service_filename[$i]} -port $j &
|
||||||
|
|
||||||
cmd="./${service_filename[$i]} -port $j -prometheus_port ${prome_ports[$i]}"
|
cmd="./${service_filename[$i]} -port $j -prometheus_port ${prome_ports[$j]}"
|
||||||
if [ $i -eq 0 -o $i -eq 1 ]; then
|
if [ $i -eq 0 -o $i -eq 1 ]; then
|
||||||
cmd="./${service_filename[$i]} -port $j"
|
cmd="./${service_filename[$i]} -port $j"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user