ethereumjs-monorepo icon indicating copy to clipboard operation
ethereumjs-monorepo copied to clipboard

Feature Request: Prometheus Metrics

Open SeaMonkey82 opened this issue 2 years ago • 3 comments

The ability to expose a Prometheus metrics endpoint would be a welcome addition, as it is a standard feature in all other Ethereum clients.

SeaMonkey82 avatar Oct 06 '23 01:10 SeaMonkey82

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?

acolytec3 avatar Oct 06 '23 02:10 acolytec3

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 🙂

holgerd77 avatar Feb 15 '24 11:02 holgerd77

https://tohidhaghighi.medium.com/add-prometheus-metrics-in-nodejs-ce0ff5a43b44

holgerd77 avatar Feb 15 '24 13:02 holgerd77