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

Add prometheus metrics #5

Merged
merged 4 commits into from
Oct 3, 2023

Conversation

skylenet
Copy link
Member

@skylenet skylenet commented Jun 6, 2023

Adding web server to serve /metrics endpoint that can be scraped by prometheus.

Just and example on how it looks like:

$  docker exec -it dns curl localhost:9100/metrics
devp2p_discv4_dns_nodes{domain="all.goerli.nodes.ethflare.xyz"} 242
devp2p_discv4_dns_nodes{domain="all.mainnet.nodes.ethflare.xyz"} 1127
devp2p_discv4_dns_nodes{domain="all.rinkeby.nodes.ethflare.xyz"} 116
devp2p_discv4_dns_nodes{domain="all.ropsten.nodes.ethflare.xyz"} 185
devp2p_discv4_dns_nodes{domain="les.goerli.nodes.ethflare.xyz"} 7
devp2p_discv4_dns_nodes{domain="les.mainnet.nodes.ethflare.xyz"} 62
devp2p_discv4_dns_nodes{domain="les.rinkeby.nodes.ethflare.xyz"} 10
devp2p_discv4_dns_nodes{domain="les.ropsten.nodes.ethflare.xyz"} 5

There's a small breaking change by renaming CRAWL_PUBLISH_METRICS to INFLUXDB_METRICS_ENABLED. This should be updated on any deployment that wants to keep pushing metrics to influx directly.

@holiman holiman merged commit 48b8d90 into ethereum:master Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants