File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
stacks-signer/src/monitoring Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ pub mod actions {
91
91
BLOCK_PROPOSALS_RECEIVED . inc ( ) ;
92
92
}
93
93
94
+ /// Increment the block pre-commit sent counter
95
+ pub fn increment_block_pre_commits_sent ( ) {
96
+ BLOCK_PRE_COMMITS_SENT . inc ( ) ;
97
+ }
98
+
94
99
/// Update the stx balance of the signer
95
100
pub fn update_signer_stx_balance ( balance : i64 ) {
96
101
SIGNER_STX_BALANCE . set ( balance) ;
@@ -206,6 +211,9 @@ pub mod actions {
206
211
/// Increment the number of block proposals received
207
212
pub fn increment_block_proposals_received ( ) { }
208
213
214
+ /// Increment the block pre-commits sent counter
215
+ pub fn increment_block_pre_commits_sent ( ) { }
216
+
209
217
/// Update the stx balance of the signer
210
218
pub fn update_signer_stx_balance ( _balance : i64 ) { }
211
219
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ lazy_static! {
48
48
"The number of block proposals received by the signer"
49
49
) )
50
50
. unwrap( ) ;
51
+ pub static ref BLOCK_PRE_COMMITS_SENT : IntCounter = register_int_counter!( opts!(
52
+ "stacks_signer_block_pre_commits_sent" ,
53
+ "The number of block pre-commits sent by the signer"
54
+ ) )
55
+ . unwrap( ) ;
51
56
pub static ref CURRENT_REWARD_CYCLE : IntGauge = register_int_gauge!( opts!(
52
57
"stacks_signer_current_reward_cycle" ,
53
58
"The current reward cycle"
You can’t perform that action at this time.
0 commit comments