-
-
Notifications
You must be signed in to change notification settings - Fork 290
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 metric to track default validator configuration #7194
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #7194 +/- ##
============================================
- Coverage 49.21% 49.20% -0.01%
============================================
Files 598 598
Lines 39794 39795 +1
Branches 2091 2097 +6
============================================
Hits 19583 19583
Misses 20171 20171
- Partials 40 41 +1 |
Performance Report✔️ no performance regression detected 🚀🚀 Significant benchmark improvement detected
Full benchmark results
|
No, 5932 is about having a counter with with a single label that tracks local vs builder block building // produceEngineOrBuilderBlock
const executionPayloadSource: "builder" | "engine" = ...;
metrics?.blockProductionStrategy.inc({source: executionPayloadSource}); |
I don't think we would have caught the issue noted in #5932 even if we had this metric, I think the why is the important part. eg. metrics?.blockProductionSelection.inc({source: "engine", reason: "builder_no_bid"});
metrics?.blockProductionSelection.inc({source: "engine", reason: "builder_disabled"});
metrics?.blockProductionSelection.inc({source: "engine", reason: "builder_error"});
metrics?.blockProductionSelection.inc({source: "builder", reason: "block_value"}); That way we could have told that builder had errors and it was not just due to min-bid that we only proposed local blocks. Maybe in addition add a histogram that tracks builder and engine block values to get a better overview on block values. |
Curious about the usefulness of the metrics added in this PR, the default configs are also printed out on startup so we might not need it. Maybe something could help infra team @Faithtosin @philknows ? If not we should probably close this and revert the dashboard |
Imo its nice to have |
I also think it's nice to have, honestly! |
Motivation
Related to #5932, it seems useful to see in grafana how the validator client is configured and detect misconfigurations.
Description
Add metric to track default validator configuration
We can extend the tracked default configuration values as needed by simply adding a new label to the metric.
@wemeetagain does this resolve #5932?
This will require more work and will have to be tracked on the beacon node side, we have #7190 now which shows engine and builder errors which gives some insights but in case that both blocks succeed, we have to add more metrics to properly track the reason why we selected builder over engine block or vice-versa.