Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

feat: adding metric_url for reth #124

Merged
merged 10 commits into from
Sep 20, 2023
1 change: 1 addition & 0 deletions src/el/besu/besu_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def launch(
WS_PORT_NUM,
ENGINE_HTTP_RPC_PORT_NUM,
jwt_secret,
"", # Passing empty metric_url for now
loocapro marked this conversation as resolved.
Show resolved Hide resolved
service_name
)

Expand Down
2 changes: 2 additions & 0 deletions src/el/el_client_context.star
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def new_el_client_context(
ws_port_num,
engine_rpc_port_num,
jwt_secret,
metric_url,
loocapro marked this conversation as resolved.
Show resolved Hide resolved
service_name = ""):
return struct(
service_name = service_name,
Expand All @@ -18,4 +19,5 @@ def new_el_client_context(
ws_port_num = ws_port_num,
engine_rpc_port_num = engine_rpc_port_num,
jwt_secret = jwt_secret,
metric_url = metric_url,
)
1 change: 1 addition & 0 deletions src/el/erigon/erigon_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def launch(
WS_RPC_PORT_NUM,
ENGINE_RPC_PORT_NUM,
jwt_secret,
"", # Passing empty metric_url for now
loocapro marked this conversation as resolved.
Show resolved Hide resolved
service_name
)

Expand Down
1 change: 1 addition & 0 deletions src/el/ethereumjs/ethereumjs_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def launch(
WS_PORT_NUM,
ENGINE_RPC_PORT_NUM,
jwt_secret,
"", # Passing empty metric_url for now
loocapro marked this conversation as resolved.
Show resolved Hide resolved
service_name,
)

Expand Down
1 change: 1 addition & 0 deletions src/el/geth/geth_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def launch(
WS_PORT_NUM,
ENGINE_RPC_PORT_NUM,
jwt_secret,
"", # Passing empty metric_url for now
service_name
)

Expand Down
1 change: 1 addition & 0 deletions src/el/nethermind/nethermind_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def launch(
WS_PORT_NUM,
ENGINE_RPC_PORT_NUM,
jwt_secret,
"", # Passing empty metric_url for now
service_name
)

Expand Down
3 changes: 3 additions & 0 deletions src/el/reth/reth_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def launch(

jwt_secret = shared_utils.read_file_from_service(plan, service_name, jwt_secret_json_filepath_on_client)

metric_url = "http://{0}:{1}".format(service.ip_address, METRICS_PORT_NUM)
loocapro marked this conversation as resolved.
Show resolved Hide resolved

return el_client_context.new_el_client_context(
"reth",
"", # reth has no enr
Expand All @@ -106,6 +108,7 @@ def launch(
WS_PORT_NUM,
ENGINE_RPC_PORT_NUM,
jwt_secret,
metric_url,
service_name,
)

Expand Down