Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/ethrex/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub struct Options {
)]
pub metrics_port: String,
#[arg(
long = "metrics",
long = "metrics.enabled",
action = ArgAction::SetTrue,
help = "Enable metrics collection and exposition",
help_heading = "Node options"
Expand Down
2 changes: 1 addition & 1 deletion crates/l2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ init-l2: ## 🚀 Initializes an L2 Lambda ethrex Client
--network ${L2_GENESIS_FILE_PATH} \
--http.port ${L2_PORT} \
--http.addr ${L2_RPC_ADDRESS} \
--metrics \
--metrics.enabled \
--metrics.port ${L2_PROMETHEUS_METRICS_PORT} \
--datadir ${ethrex_L2_DEV_DB} \
--l1.bridge-address ${DEFAULT_BRIDGE_ADDRESS} \
Expand Down
4 changes: 2 additions & 2 deletions docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Node options:
[env: ETHREX_METRICS_PORT=]
[default: 9090]

--metrics
--metrics.enabled
Enable metrics collection and exposition

--dev
Expand Down Expand Up @@ -198,7 +198,7 @@ Node options:
[env: ETHREX_METRICS_PORT=]
[default: 9090]

--metrics
--metrics.enabled
Enable metrics collection and exposition

--dev
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/l1/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ A consensus node must be running for the syncing to work.

To run the execution node on any network with metrics, the next steps should be followed:
1. Build the `ethrex` binary for the network you want (see node options in [CLI Commands](../../CLI.md#cli-commands)) with the `metrics` feature enabled.
2. Enable metrics by using the `--metrics` flag when starting the node.
2. Enable metrics by using the `--metrics.enabled` flag when starting the node.
3. Set the `--metrics.port` cli arg of the ethrex binary to match the port defined in `metrics/provisioning/prometheus/prometheus_l1_sync_docker.yaml`
4. Run the docker containers:

Expand Down
2 changes: 1 addition & 1 deletion metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ If a new dashboard is designed, it can be mounted only in that `*overrides` file

To run the node with metrics, the next steps should be followed:
1. Build the `ethrex` binary with the `metrics` feature enabled.
2. Enable metrics by using the `--metrics` flag when starting the node.
2. Enable metrics by using the `--metrics.enabled` flag when starting the node.
3. Set the `--metrics.port` cli arg of the ethrex binary to match the port defined in `metrics/provisioning/prometheus/prometheus*.yaml`
4. Run the docker containers, example with the L2:

Expand Down
8 changes: 4 additions & 4 deletions tooling/sync/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ endif
@echo "Starting ethrex..."
cd $(ETHREX_DIR) && cargo run --release --features "metrics" --bin ethrex -- \
--network $(NETWORK) \
--metrics \
--metrics.enabled \
--metrics.port 3701 \
import $(RLP_FILE) \
--removedb
Expand Down Expand Up @@ -165,7 +165,7 @@ start-lighthouse: ## Start lighthouse for the network given by NETWORK.
--http \
--http-address 0.0.0.0 \
--http-allow-origin "*" \
--metrics \
--metrics.enabled \
--metrics-address 0.0.0.0 \
--metrics-port 5054 \
--datadir $(DATA_PATH)/${NETWORK}_data/lighthouse_${NODE_NAME}_$(EVM) \
Expand All @@ -178,7 +178,7 @@ start-ethrex: ## Start ethrex for the network given by NETWORK.
--authrpc.port 8551 \
--p2p.port 30303\
--discovery.port 30303 \
--metrics \
--metrics.enabled \
--metrics.port 3701 \
--network $(NETWORK) \
--datadir "$(DATA_PATH)/${NETWORK}_data/ethrex/$(EVM)" \
Expand Down Expand Up @@ -219,4 +219,4 @@ server-sync:

sleep 0.2

tmux new-window -t sync:2 -n ethrex "cd ../../metrics && docker stop metrics-ethereum-metrics-exporter-1 || true && docker compose -f docker-compose-metrics.yaml -f docker-compose-metrics-l1.overrides.yaml up -d && cd .. && ulimit -n 1000000 && rm -rf ~/.local/share/ethrex && RUST_LOG=info,ethrex_p2p::sync=debug $(if $(DEBUG_ASSERT),RUSTFLAGS='-C debug-assertions=yes') $(if $(HEALING),SKIP_START_SNAP_SYNC=1) cargo run --release --bin ethrex --features rocksdb -- --http.addr 0.0.0.0 --metrics --metrics.port 3701 --network $(SERVER_SYNC_NETWORK) $(if $(MEMORY),--datadir memory) --authrpc.jwtsecret ~/secrets/jwt.hex $(if $(or $(FULL_SYNC),$(HEALING)),--syncmode full) 2>&1 | tee $(LOGS_FILE)"
tmux new-window -t sync:2 -n ethrex "cd ../../metrics && docker stop metrics-ethereum-metrics-exporter-1 || true && docker compose -f docker-compose-metrics.yaml -f docker-compose-metrics-l1.overrides.yaml up -d && cd .. && ulimit -n 1000000 && rm -rf ~/.local/share/ethrex && RUST_LOG=info,ethrex_p2p::sync=debug $(if $(DEBUG_ASSERT),RUSTFLAGS='-C debug-assertions=yes') $(if $(HEALING),SKIP_START_SNAP_SYNC=1) cargo run --release --bin ethrex --features rocksdb -- --http.addr 0.0.0.0 --metrics.enabled --metrics.port 3701 --network $(SERVER_SYNC_NETWORK) $(if $(MEMORY),--datadir memory) --authrpc.jwtsecret ~/secrets/jwt.hex $(if $(or $(FULL_SYNC),$(HEALING)),--syncmode full) 2>&1 | tee $(LOGS_FILE)"
Loading