@@ -2763,6 +2763,70 @@ def validator() -> RowPanel:
27632763 return create_row ("Validator" , metrics )
27642764
27652765
2766+ def slasher () -> RowPanel :
2767+ metrics = [
2768+ timeseries_panel (
2769+ targets = [
2770+ target (
2771+ 'tycho_slasher_blocks_batch_size{instance=~"$instance"} and \
2772+ on(instance, job) tycho_slasher_enabled{instance=~"$instance"} == 1' ,
2773+ legend_format = "{{instance}}" ,
2774+ )
2775+ ],
2776+ title = "Slasher blocks batch size" ,
2777+ unit = UNITS .NUMBER_FORMAT ,
2778+ ),
2779+ create_gauge_panel ("tycho_slasher_active_sessions" , "Slasher active sessions" ),
2780+ create_gauge_panel (
2781+ "tycho_slasher_session_init_queue_len" , "Slasher session init queue"
2782+ ),
2783+ create_gauge_panel (
2784+ "tycho_slasher_batch_delivery_tasks" , "Slasher batch delivery tasks"
2785+ ),
2786+ create_gauge_panel (
2787+ "tycho_slasher_pending_messages" , "Slasher pending messages"
2788+ ),
2789+ create_counter_panel (
2790+ "tycho_slasher_blocks_batch_send_attempts_total" ,
2791+ "Slasher batch send attempts" ,
2792+ ),
2793+ create_counter_panel (
2794+ "tycho_slasher_blocks_batch_send_results_total" ,
2795+ "Slasher batch send results" ,
2796+ by_labels = ["instance" , "result" ],
2797+ legend_format = "{{instance}} {{result}}" ,
2798+ ),
2799+ create_counter_panel (
2800+ "tycho_slasher_blocks_batches_submitted_total" ,
2801+ "Slasher submitted batches" ,
2802+ by_labels = ["instance" , "origin" ],
2803+ legend_format = "{{instance}} {{origin}}" ,
2804+ ),
2805+ create_counter_panel (
2806+ "tycho_slasher_contract_event_decode_errors_total" ,
2807+ "Slasher contract event decode errors" ,
2808+ ),
2809+ create_counter_panel (
2810+ "tycho_slasher_vset_reports_total" , "Slasher vset reports"
2811+ ),
2812+ create_counter_panel (
2813+ "tycho_slasher_accusations_total" ,
2814+ "Slasher accusations" ,
2815+ by_labels = ["instance" , "pubkey" ],
2816+ legend_format = "{{instance}} {{pubkey}}" ,
2817+ legend_placement = "bottom" ,
2818+ ),
2819+ create_heatmap_panel (
2820+ "tycho_slasher_handle_state_time" , "Slasher handle state time"
2821+ ),
2822+ create_heatmap_panel (
2823+ "tycho_slasher_blocks_batch_delivery_time" ,
2824+ "Slasher blocks batch delivery time" ,
2825+ ),
2826+ ]
2827+ return create_row ("Slasher" , metrics )
2828+
2829+
27662830def mempool_rounds () -> RowPanel :
27672831 metrics = [
27682832 create_gauge_panel (
@@ -3682,6 +3746,7 @@ def templates() -> Templating:
36823746 collator_misc_operations_metrics (),
36833747 collator_commit_block_metrics (),
36843748 validator (),
3749+ slasher (),
36853750 mempool_rounds (),
36863751 mempool_payload_rates (),
36873752 mempool_engine_rates (),
0 commit comments