@@ -3,51 +3,41 @@ use apollo_state_sync_metrics::metrics::{
33 CENTRAL_SYNC_CENTRAL_BLOCK_MARKER ,
44 STATE_SYNC_BODY_MARKER ,
55 STATE_SYNC_CLASS_MANAGER_MARKER ,
6- STATE_SYNC_COMPILED_CLASS_MARKER ,
76 STATE_SYNC_HEADER_LATENCY_SEC ,
87} ;
98
109use crate :: dashboard:: Row ;
1110use crate :: panel:: { Panel , PanelType , Unit } ;
1211use crate :: query_builder:: DEFAULT_DURATION ;
1312
14- fn get_panel_central_sync_central_block_marker ( ) -> Panel {
13+ fn get_panel_current_feeder_gateway_marker ( ) -> Panel {
1514 Panel :: new (
16- "Central Block Marker" ,
17- "The first block number that doesn't exist yet " ,
15+ "Current Feeder Gateway Marker" ,
16+ "The latest block number available in the feeder gateway + 1 " ,
1817 CENTRAL_SYNC_CENTRAL_BLOCK_MARKER . get_name_with_filter ( ) . to_string ( ) ,
1918 PanelType :: Stat ,
2019 )
2120}
22- fn get_panel_state_sync_body_marker ( ) -> Panel {
21+ fn get_panel_sync_body_marker ( ) -> Panel {
2322 Panel :: new (
24- "State Sync Body Marker" ,
25- "The first block number for which the state sync component does not have a body " ,
23+ "Current Sync Body Marker" ,
24+ "The first block whose body hasn't been downloaded " ,
2625 STATE_SYNC_BODY_MARKER . get_name_with_filter ( ) . to_string ( ) ,
2726 PanelType :: Stat ,
2827 )
2928}
30- fn get_panel_state_sync_class_manager_marker ( ) -> Panel {
29+ fn get_panel_current_sync_marker ( ) -> Panel {
3130 Panel :: new (
32- "State Sync Class Manager Marker" ,
33- "The first block number for which the state sync component does not have a class " ,
31+ "Current Sync Marker" ,
32+ "The first block that hasn't been fully downloaded " ,
3433 STATE_SYNC_CLASS_MANAGER_MARKER . get_name_with_filter ( ) . to_string ( ) ,
3534 PanelType :: Stat ,
3635 )
3736}
38- fn get_panel_state_sync_compiled_class_marker ( ) -> Panel {
37+ fn get_panel_sync_diff_from_feeder_gateway ( ) -> Panel {
3938 Panel :: new (
40- "State Sync Compiled Class Marker" ,
41- "The first block number for which the state sync component does not have all of the \
42- corresponding compiled classes",
43- STATE_SYNC_COMPILED_CLASS_MARKER . get_name_with_filter ( ) . to_string ( ) ,
44- PanelType :: Stat ,
45- )
46- }
47- fn get_panel_state_sync_diff_from_central ( ) -> Panel {
48- Panel :: new (
49- "Sync Diff From Central" ,
50- "The number of blocks that were not fully synced yet" ,
39+ "Sync Diff From Feeder Gateway" ,
40+ "The number of blocks that exist in the feeder but weren't downloaded yet" ,
5141 format ! (
5242 "{} - {}" ,
5343 CENTRAL_SYNC_CENTRAL_BLOCK_MARKER . get_name_with_filter( ) ,
@@ -56,10 +46,10 @@ fn get_panel_state_sync_diff_from_central() -> Panel {
5646 PanelType :: TimeSeries ,
5747 )
5848}
59- fn get_panel_state_sync_new_header_maturity ( ) -> Panel {
49+ fn get_panel_sync_block_age ( ) -> Panel {
6050 Panel :: new (
6151 "Sync Block Age" ,
62- "The time from a block’s timestamp until its header is synced through the feeder-gateway ." ,
52+ "The time from a block’s timestamp until its header is downloaded ." ,
6353 STATE_SYNC_HEADER_LATENCY_SEC . get_name_with_filter ( ) . to_string ( ) ,
6454 PanelType :: TimeSeries ,
6555 )
@@ -70,9 +60,8 @@ fn get_panel_time_to_complete_sync() -> Panel {
7060 "Time to Complete Sync" ,
7161 format ! (
7262 "Estimated time to complete syncing to the latest block (based on a {} window \
73- rate).\n The value is computed from the sync rate of the `class manager marker` \
74- (which is the last component to finish downloading among all state sync parts), \
75- compared against the `central block marker` (the latest block known to central).",
63+ rate).\n The value is computed from the sync rate of the `current sync marker` \
64+ compared against the `current feeder gateway marker`.",
7665 DEFAULT_DURATION
7766 ) ,
7867 format ! (
@@ -91,13 +80,12 @@ pub(crate) fn get_state_sync_row() -> Row {
9180 Row :: new (
9281 "State Sync" ,
9382 vec ! [
94- get_panel_central_sync_central_block_marker( ) ,
83+ get_panel_current_feeder_gateway_marker( ) ,
84+ get_panel_current_sync_marker( ) ,
9585 get_panel_time_to_complete_sync( ) ,
96- get_panel_state_sync_diff_from_central( ) ,
97- get_panel_state_sync_new_header_maturity( ) ,
98- get_panel_state_sync_body_marker( ) ,
99- get_panel_state_sync_class_manager_marker( ) ,
100- get_panel_state_sync_compiled_class_marker( ) ,
86+ get_panel_sync_diff_from_feeder_gateway( ) ,
87+ get_panel_sync_block_age( ) ,
88+ get_panel_sync_body_marker( ) ,
10189 ] ,
10290 )
10391}
0 commit comments