Commit 3c0fe9c1 authored by Gyanendra Mishra's avatar Gyanendra Mishra

promtehsus launcher is better

parent 82f5879a
......@@ -6,6 +6,7 @@ load("github.com/kurtosis-tech/eth2-module/src/participant_network/prelaunch_dat
load("github.com/kurtosis-tech/eth2-module/src/transaction_spammer/transaction_spammer.star", "launch_transaction_spammer")
load("github.com/kurtosis-tech/eth2-module/src/forkmon/forkmon_launcher.star", "launch_forkmon")
load("github.com/kurtosis-tech/eth2-module/src/prometheus/prometheus_launcher.star", "launch_prometheus")
module_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
......@@ -48,6 +49,13 @@ def main(input_args):
launch_forkmon(forkmon_config_template, all_cl_client_contexts, cl_gensis_timestamp, network_params.seconds_per_slot, network_params.slots_per_epoch)
print("Succesfully launched forkmon")
print("Launching prometheus...")
prometheus_private_url = launch_prometheus(
prometheus_config_template,
all_cl_client_contexts,
)
print("Successfully launched Prometheus")
grafana_info = module_io.GrafanaInfo(
dashboard_path = "dummy_path",
......
......@@ -21,7 +21,7 @@ USED_PORTS = {
def launch_prometheus(config_template, cl_client_contexts):
all_cl_nodes_metrics_info = []
for client in cl_client_contexts:
all_cl_nodes_metrics_info.append(client.cl_nodes_metrics_info)
all_cl_nodes_metrics_info.extend(client.cl_nodes_metrics_info)
template_data = new_config_template_data(all_cl_nodes_metrics_info)
template_data_json = json.encode(template_data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment