node icon indicating copy to clipboard operation
node copied to clipboard

How to enable geth stats?

Open danielpham765 opened this issue 1 year ago • 1 comments

# [optional] used to enable geth stats:
# OP_GETH_ETH_STATS=nodename:secret@host:port
# OP_NETHERMIND_ETHSTATS_ENABLED=true
# OP_NETHERMIND_ETHSTATS_NODE_NAME=NethermindNode
# OP_NETHERMIND_ETHSTATS_ENDPOINT=ethstats_endpoint

Can someone give me an example to enable the geth stats?

I added the nethermind service to the docker-compose file. Then, what should I replace with OP_GETH_ETH_STATS=nodename:secret@host:port?

Please share your docker-compose file and .env.mainnet file for example.

danielpham765 avatar Dec 28 '24 09:12 danielpham765

You would set the environment variable like this OP_GETH_ETH_STATS=MyGethNode:[email protected]:3000

Example in a Docker Compose File

version: '3'

services: geth: image: ethereum/client-go:stable environment: - OP_GETH_ETH_STATS=MyGethNode:[email protected]:3000 ports: - "8545:8545" - "8546:8546" - "30303:30303"

This configuration will enable Geth stats for your node

Mukzid avatar Dec 30 '24 09:12 Mukzid

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 17 '25 00:11 github-actions[bot]