Skip to content

Commit 8b9c05e

Browse files
committed
chore: rename prometheus conflict metric about miner view, #5918
1 parent d7b6b01 commit 8b9c05e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

stacks-signer/src/monitoring/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ SignerAgreementStateConflict {
4242
BurnBlockDelay("burn_block_delay"),
4343
/// Waiting for stacks block propagation to be aligned with the signer set
4444
StacksBlockDelay("stacks_block_delay"),
45-
/// Not allowing reorg to a new miner
46-
ReorgDisallowed("reorg_disallowed"),
45+
/// No agreement on miner view with the signer set
46+
MinerView("miner_view"),
4747
});
4848

4949
/// Actions for updating metrics

stacks-signer/src/monitoring/prometheus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ lazy_static! {
8787

8888
pub static ref SIGNER_AGREEMENT_STATE_CONFLICTS: IntCounterVec = register_int_counter_vec!(
8989
"stacks_signer_agreement_state_conflicts",
90-
"The number of state machine conflicts in signer agreement protocol. `conflict` can be one of: 'burn_block_delay', 'stacks_block_delay', 'reorg_disallowed'",
90+
"The number of state machine conflicts in signer agreement protocol. `conflict` can be one of: 'burn_block_delay', 'stacks_block_delay', 'miner_view'",
9191
&["conflict"]
9292
).unwrap();
9393

stacks-signer/src/v0/signer_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl GlobalStateEvaluator {
214214
}
215215
}
216216
crate::monitoring::actions::increment_signer_agreement_state_conflict(
217-
crate::monitoring::SignerAgreementStateConflict::ReorgDisallowed,
217+
crate::monitoring::SignerAgreementStateConflict::MinerView,
218218
);
219219
None
220220
}

0 commit comments

Comments
 (0)