Skip to content

Commit 6453a86

Browse files
committed
Address comments
1 parent 9f973ad commit 6453a86

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

apps/quorum/src/api.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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()?,

apps/quorum/src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}),

0 commit comments

Comments
 (0)