-
Notifications
You must be signed in to change notification settings - Fork 902
Track beacon processor import result metrics #6541
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
Track beacon processor import result metrics #6541
Conversation
92e801b
to
dc81bbd
Compare
beacon_node/network/src/metrics.rs
Outdated
LazyLock::new(|| { | ||
try_create_int_counter_vec( | ||
"beacon_processor_import_errors_total", | ||
"Total number of block components verified", |
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.
This should be Total number of block components that was not verified
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.
Nice, just a nit on the metric description and some merge conflicts, otherwise looks good!
dc81bbd
to
77e8e8b
Compare
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.
Looks good thanks!
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at c92c07f |
Issue Addressed
Our current metrics to track the result of block imports are incomplete. A block import can be triggered by any block component, both from gossip and RPC. We should metric the
AvailabilityProcessingStatus
of block, blob, and custody column import to count all possible import events.Also, I would like to track all errors that can occur during import. For example
BlockError::DuplicateFullyImported
, which show the efficiency of sync.Proposed Changes
Track the return of all
process_*
functions with the same helperregister_process_result_metrics
. Track the resultFullyImported
/MissingComponents
/Error
labeled by block component and provenance.Additional Info
This PR has no breaking changes w.r.t. current metrics. However, it fixes the following metric:
beacon_processor_rpc_block_imported_total
: This metric is incorrect. Blocks with blobs synced by lookup sync are never tracked, as the block is always imported first and blobs second.