Monitoring
Prometheus Metrics
Section titled “Prometheus Metrics”The Base Reth Node exports Prometheus-compatible metrics. The base-cli-utils crate sets up a metrics HTTP listener using metrics-exporter-prometheus.
Key metric categories:
- Process metrics — CPU, memory, file descriptors (via
metrics-process) - RPC metrics — Request counts, latencies, error rates
- Transaction pool — Pool size, pending/queued counts
- Sync progress — Block height, peer count
- Flashblocks — Flashblock production rate, latency
Devnet Monitoring
Section titled “Devnet Monitoring”The devnet includes built-in monitoring commands:
# Check block numbers and sync status across all nodesjust devnet-status
# View funded test accounts with balances and noncesjust devnet-accounts
# Run smoke tests (send test transactions to L1 and L2)just devnet-smoke
# Full check suitejust devnet-checksLog Streaming
Section titled “Log Streaming”Stream logs from devnet containers:
# All containersjust devnet-logs
# Specific containersjust devnet-logs l2-node builderProfiling
Section titled “Profiling”For performance profiling, build with the profiling profile:
just devnet-profilingThis starts the devnet with Pyroscope integration and optimized builds that retain frame pointers for accurate profiling.
The profiling profile settings:
- Inherits from
release - LTO disabled for faster builds
- Debug info: line tables only
- Frame pointers forced on
- Symbols not stripped