From 99102da1edf77281215987d9b8db4ded7462f7ec Mon Sep 17 00:00:00 2001 From: timorleph Date: Fri, 10 Jan 2025 10:21:19 +0100 Subject: [PATCH] Make run_nodes export metricsproperly --- scripts/run_nodes.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/run_nodes.sh b/scripts/run_nodes.sh index 30cd64ec1e..2d5972440a 100755 --- a/scripts/run_nodes.sh +++ b/scripts/run_nodes.sh @@ -44,6 +44,7 @@ CHAINSPEC_GENERATOR="target/release/chain-bootstrapper" NODE_P2P_PORT_RANGE_START=30333 NODE_VALIDATOR_PORT_RANGE_START=30343 NODE_RPC_PORT_RANGE_START=9944 +PROMETHEUS_PORT_RANGE_START=9615 # ------------------------ argument parsing and usage ----------------------- @@ -174,6 +175,7 @@ function run_node() { --name "${node_name}" --rpc-port $((NODE_RPC_PORT_RANGE_START + index)) --port $((NODE_P2P_PORT_RANGE_START + index)) + --prometheus-port $((PROMETHEUS_PORT_RANGE_START + index)) --validator-port "${validator_port}" --node-key-file "${BASE_PATH}/${account_id}/p2p_secret" --backup-path "${BASE_PATH}/${account_id}/backup-stash" @@ -193,6 +195,7 @@ function run_node() { -laleph-data-store=debug -laleph-updater=debug -laleph-metrics=debug + -laleph-abft=debug ) info "Running node ${index}..."