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(
142
142
state. guardian_set . clone ( ) ,
143
143
state. observation_lifetime ,
144
144
) ?;
145
+ metrics:: counter!(
146
+ "verified_observations_total" ,
147
+ & [ ( "gaurdian_index" , verifier_index. to_string( ) ) ]
148
+ )
149
+ . increment ( 1 ) ;
145
150
let new_signature = Signature {
146
151
signature : params. signature ,
147
152
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<()> {
185
185
let state = state. clone( ) ;
186
186
async move {
187
187
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 " )
190
190
. set( verification. values( ) . flatten( ) . count( ) as f64 ) ;
191
191
}
192
192
} ) ,
You can’t perform that action at this time.
0 commit comments