-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
L1-191: Slo metrics refactor (#1749)
# Description Refactor, which: 1. Unifies handling of metrics like `aleph_best_block[_1s]`, `aleph_reorgs`, `aleph_transaction_to_block_time` with the good old timing block metrics based on checkpoints. 2. Changes how `Checkpoint::Imported` and `Checkpoint::Finalized` are reported - instead of reporting these in wrappers, like `TracingBlockImport`, now these will be imported using notification streams. This may cause these metrics to show slightly larger time, but as experiments show this has in practice little impact (`Importing -> Imported` is ~4ms instead of ~3.7ms under normal conditions and almost empty blocks on featurenet). 3. As a consequence, we can remove `TracingBlockImport` and move metrics initialization from `bin/node/service.rs` to `finality-aleph`. 4. Small consistency improvements in what was previously `AllBlockMetrics` - imho now it's slightly better, but this is subjective. Tests in `metrics/transaction-pool` were unchanged, only setup for them was slightly adjusted, so feel free to just skim through them. ## Type of change (refactor) # Checklist: (none)
- Loading branch information
Showing
21 changed files
with
742 additions
and
976 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.