diff --git a/src/dora/dora_launcher.star b/src/dora/dora_launcher.star index 10b03b416..2b1536033 100644 --- a/src/dora/dora_launcher.star +++ b/src/dora/dora_launcher.star @@ -52,12 +52,24 @@ def launch_dora( full_name, ) ) + + snooper_el_engine_context = participant_contexts[ + index + ].snooper_el_engine_context + execution_snooper_url = "" + if snooper_el_engine_context: + execution_snooper_url = "http://{0}:{1}".format( + snooper_el_engine_context.ip_addr, + snooper_el_engine_context.engine_rpc_port_num, + ) + all_el_client_info.append( new_el_client_info( "http://{0}:{1}".format( el_client.ip_addr, el_client.rpc_port_num, ), + execution_snooper_url, full_name, ) ) @@ -202,8 +214,9 @@ def new_cl_client_info(beacon_http_url, full_name): } -def new_el_client_info(execution_http_url, full_name): +def new_el_client_info(execution_http_url, execution_snooper_url, full_name): return { "Execution_HTTP_URL": execution_http_url, + "Execution_Engine_Snooper_URL": execution_snooper_url, "FullName": full_name, } diff --git a/static_files/dora-config/config.yaml.tmpl b/static_files/dora-config/config.yaml.tmpl index b4e8bbe1b..81c48b9df 100644 --- a/static_files/dora-config/config.yaml.tmpl +++ b/static_files/dora-config/config.yaml.tmpl @@ -53,6 +53,7 @@ executionapi: endpoints: {{ range $elClient := .ELClientInfo }} - url: "{{ $elClient.Execution_HTTP_URL }}" + engineSnooperUrl: "{{ $elClient.Execution_Engine_Snooper_URL }}" name: "{{ $elClient.FullName }}" archive: true {{- end }}