-
Notifications
You must be signed in to change notification settings - Fork 7
Feat/add metric manager #296
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
bf036e4
add metrics to handle
georgehao ae743f8
add manager metrics
georgehao b3db39d
fix conflict
georgehao 22a1276
fix lint
georgehao 43ff1f6
fix lint
georgehao d53c4de
update
georgehao 1418555
Merge branch 'main' into feat/add_metric_manager
frisitano 5675d70
Merge branch 'main' into feat/add_metric_manager
georgehao 1e2529e
Merge branch 'main' into feat/add_metric_manager
frisitano e6d4db4
fix conflict
georgehao df07274
Merge branch 'feat/add_metric_manager' of github.com:scroll-tech/roll…
georgehao fad20f8
Update crates/manager/src/manager/handle.rs
georgehao 6476569
Merge branch 'main' into feat/add_metric_manager
georgehao 408e29e
fix lint
georgehao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| use metrics::{Counter, Gauge}; | ||
| use metrics_derive::Metrics; | ||
|
|
||
| /// The metrics for the [`super::RollupManagerHandle`]. | ||
| #[derive(Metrics, Clone)] | ||
| #[metrics(scope = "NodeManager")] | ||
| pub(crate) struct HandleMetrics { | ||
| /// Failed to send command to rollup manager from handle counter. | ||
| pub handle_send_command_failed: Counter, | ||
| } | ||
|
|
||
| /// The metrics for the [`super::RollupNodeManager`]. | ||
| #[derive(Metrics, Clone)] | ||
| #[metrics(scope = "NodeManager")] | ||
| pub(crate) struct RollupNodeManagerMetrics { | ||
| /// Manager received and handle rollup manager command counter. | ||
| pub handle_rollup_manager_command: Counter, | ||
| /// Manager received and handle engine driver event counter. | ||
| pub handle_engine_driver_event: Counter, | ||
| /// Manager received and handle new block produced counter. | ||
| pub handle_new_block_produced: Counter, | ||
| /// Manager received and handle l1 notification counter. | ||
| pub handle_l1_notification: Counter, | ||
| /// Manager received and handle chain orchestrator event counter. | ||
| pub handle_chain_orchestrator_event: Counter, | ||
| /// Manager received and handle signer event counter. | ||
| pub handle_signer_event: Counter, | ||
| /// Manager received and handle build new payload counter. | ||
| pub handle_build_new_payload: Counter, | ||
| /// Manager received and handle l1 consolidation counter. | ||
| pub handle_l1_consolidation: Counter, | ||
| /// Manager received and handle network manager event counter. | ||
| pub handle_network_manager_event: Counter, | ||
| /// Manager finalized batch index gauge. | ||
| pub handle_finalized_batch_index: Gauge, | ||
| /// Manager l1 finalized block number gauge. | ||
| pub handle_l1_finalized_block_number: Gauge, | ||
| /// Manager L1 reorg L1 block number gauge. | ||
| pub handle_l1_reorg_l1_block_number: Gauge, | ||
| /// Manager L1 reorg L2 head block number gauge. | ||
| pub handle_l1_reorg_l2_head_block_number: Gauge, | ||
| /// Manager L1 reorg L2 safe block number gauge. | ||
| pub handle_l1_reorg_l2_safe_block_number: Gauge, | ||
| /// Manager chain import block number gauge. | ||
| pub handle_chain_import_block_number: Gauge, | ||
| /// Manager optimistic syncing block number gauge. | ||
| pub handle_optimistic_syncing_block_number: Gauge, | ||
| } |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.