File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,11 @@ async fn handle_observation(
142142 state. guardian_set . clone ( ) ,
143143 state. observation_lifetime ,
144144 ) ?;
145+ metrics:: counter!(
146+ "verified_observations_total" ,
147+ & [ ( "gaurdian_index" , verifier_index. to_string( ) ) ]
148+ )
149+ . increment ( 1 ) ;
145150 let new_signature = Signature {
146151 signature : params. signature ,
147152 index : verifier_index. try_into ( ) ?,
Original file line number Diff line number Diff line change @@ -185,8 +185,8 @@ pub async fn run(run_options: RunOptions) -> anyhow::Result<()> {
185185 let state = state. clone( ) ;
186186 async move {
187187 let verification = state. verification. read( ) . await ;
188- metrics:: gauge!( "state_verifications_total " ) . set( verification. len( ) as f64 ) ;
189- metrics:: gauge!( "state_verified_observations_total " )
188+ metrics:: gauge!( "pending_vaas " ) . set( verification. len( ) as f64 ) ;
189+ metrics:: gauge!( "pending_verified_observations " )
190190 . set( verification. values( ) . flatten( ) . count( ) as f64 ) ;
191191 }
192192 } ) ,
You can’t perform that action at this time.
0 commit comments