@@ -25,22 +25,25 @@ impl BatcherMetrics {
2525 pub fn start ( metrics_port : u16 ) -> anyhow:: Result < Self > {
2626 let registry = prometheus:: Registry :: new ( ) ;
2727
28- let open_connections = register_int_gauge ! ( opts!( "open_connections" , "Open Connections" ) ) ?;
29- let received_proofs = register_int_counter ! ( opts!( "received_proofs" , "Received Proofs" ) ) ?;
30- let sent_batches = register_int_counter ! ( opts!( "sent_batches" , "Sent Batches" ) ) ?;
28+ let open_connections =
29+ register_int_gauge ! ( opts!( "open_connections_count" , "Open Connections" ) ) ?;
30+ let received_proofs =
31+ register_int_counter ! ( opts!( "received_proofs_count" , "Received Proofs" ) ) ?;
32+ let sent_batches = register_int_counter ! ( opts!( "sent_batches_count" , "Sent Batches" ) ) ?;
3133 let reverted_batches =
32- register_int_counter ! ( opts!( "reverted_batches " , "Reverted Batches" ) ) ?;
34+ register_int_counter ! ( opts!( "reverted_batches_count " , "Reverted Batches" ) ) ?;
3335 let canceled_batches =
34- register_int_counter ! ( opts!( "canceled_batches " , "Canceled Batches" ) ) ?;
36+ register_int_counter ! ( opts!( "canceled_batches_count " , "Canceled Batches" ) ) ?;
3537 let user_errors = register_int_counter_vec ! (
36- opts!( "user_errors " , "User Errors" ) ,
38+ opts!( "user_errors_count " , "User Errors" ) ,
3739 & [ "error_type" , "proving_system" ]
3840 ) ?;
39- let batcher_started = register_int_counter ! ( opts!( "batcher_started" , "Batcher Started" ) ) ?;
41+ let batcher_started =
42+ register_int_counter ! ( opts!( "batcher_started_count" , "Batcher Started" ) ) ?;
4043 let gas_price_used_on_latest_batch =
4144 register_int_gauge ! ( opts!( "gas_price_used_on_latest_batch" , "Gas Price" ) ) ?;
4245 let broken_ws_connections = register_int_counter ! ( opts!(
43- "broken_ws_connections " ,
46+ "broken_ws_connections_count " ,
4447 "Broken websocket connections"
4548 ) ) ?;
4649
0 commit comments