Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable geth stats? #373

Open
danielpham765 opened this issue Dec 28, 2024 · 1 comment
Open

How to enable geth stats? #373

danielpham765 opened this issue Dec 28, 2024 · 1 comment

Comments

@danielpham765
Copy link

# [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.

@Mukzid
Copy link

Mukzid commented Dec 30, 2024

You would set the environment variable like this OP_GETH_ETH_STATS=MyGethNode:mysecret@ethstats.myserver.com:3000

Example in a Docker Compose File

version: '3'

services:
geth:
image: ethereum/client-go:stable
environment:
- OP_GETH_ETH_STATS=MyGethNode:mysecret@ethstats.myserver.com:3000
ports:
- "8545:8545"
- "8546:8546"
- "30303:30303"

This configuration will enable Geth stats for your node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants