-
Notifications
You must be signed in to change notification settings - Fork 837
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
feat: add prometheus support #474
Conversation
This reduces image build times by ~50% after the first one. Uses cargo-chef inside the image. More info in: https://morioh.com/p/987a2bda4526
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report
@@ Coverage Diff @@
## main #474 +/- ##
==========================================
- Coverage 73.67% 73.09% -0.58%
==========================================
Files 240 241 +1
Lines 23523 24474 +951
==========================================
+ Hits 17330 17890 +560
- Misses 6193 6584 +391
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I think this is ok for now but I would be wary adding a dockerfile (and a docker-compose file) right now since those quickly turn into bikeshedding in my experience (see foundry churn on the dockerfile) and I would rather not think too much about release stuff at the moment. We should think about not only supporting prometheus at some point but this is an ok starting point, although it will probably be moved around a bit as the CLI evolves :) So TL;DR think it's ok to merge the metric stuff but would prefer no dockerfile atm (defer to @mattsse on the metric added in the networking crate - maybe it fits better somewhere else) |
Completely agree with @onbjerg comment. I was telling the same the @entropidelic. We will focus more on the metrics and we will remove the dockerfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks! it will probably experience a bit of churn when config lands
having a Dockerfile would be great to have once reth is closer to stable release. Many el and cl clients include one (out of the top of my head geth, nethermind, teku, lighthouse) |
Linked to #94
This PR adds support for Prometheus metrics
--metrics
flag to CLI to install a prometheus metrics exporter.reth
prefix layerp2pstream.disconnected_errors
metric.