ethereumjs-monorepo
ethereumjs-monorepo copied to clipboard
Feature Request: Prometheus Metrics
The ability to expose a Prometheus metrics endpoint would be a welcome addition, as it is a standard feature in all other Ethereum clients.
I haven't looked at what other clients populate within their metrics. What would be a useful starting point for identifying what metrics would be helpful?
I think we should really do this. This will be also pretty valuable for ourselves to analyze stuff.
Maybe we can start a bit small here?
Guess we can take whatever we feel we would like to have here, no imminent need to copy over behavior from other clients (but likely good as a source for inspiration). So:
- Blocks executed per second
- Tx pool size
- Number of peer connections
- Memory load
- …
There is likely a lot of useful stuff to display.
Maybe we just pick the easiest out (tx pool size?) to get things started 🙂
https://tohidhaghighi.medium.com/add-prometheus-metrics-in-nodejs-ce0ff5a43b44