Monitor EVM node sync by comparing local and remote block heights.
1.2K
evm-height-checker is a lightweight monitoring service for EVM-compatible nodes.
It periodically calls eth_blockNumber on a local RPC endpoint and a remote RPC endpoint, compares the block height delta, and reports whether the local node is within the allowed lag threshold.
/healthz liveness endpoint/readyz readiness endpoint/status detailed JSON status endpoint/metrics Prometheus metrics endpointGET /healthz - process livenessGET /readyz - readiness statusGET /status - detailed checker state in JSONGET /metrics - Prometheus metricsThis service is network-agnostic and can be used with any EVM-compatible chain, including:
The service is configured through environment variables, including:
LOCAL_RPC_URLREMOTE_RPC_URLMAX_BEHIND_BLOCKSPOLL_INTERVAL_SECONDSRPC_TIMEOUT_SECONDSRPC_RETRY_COUNTRETRY_DELAY_SECONDSSTATE_TTL_SECONDSHTTP_HOSTHTTP_PORTExample:
docker run -d \
--name evm-height-checker \
--restart unless-stopped \
-p 8080:8080 \
-e LOCAL_RPC_URL="https://your-local-rpc" \
-e REMOTE_RPC_URL="https://your-remote-rpc" \
-e MAX_BEHIND_BLOCKS="0" \
svetekllc/evm-height-checker:latest
Content type
Image
Digest
sha256:e5ef72fdd…
Size
41.2 MB
Last updated
6 months ago
docker pull svetekllc/evm-height-checker