Skip to content

Commit 690bdf9

Browse files
willhickeymergify[bot]
authored andcommitted
Add WFSM stake metric (#9803)
* Add wfsm metric. Add trace logging for peers. * Remove trace logging, since peers are already logged by gossip * Remove wrong_shred_stake from wfsm_gossip metric. This will always be 0 and the associated code will be cleaned up in a future PR (cherry picked from commit 14a5055)
1 parent 433a685 commit 690bdf9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/validator.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,6 +2865,12 @@ fn get_stake_percent_in_gossip(bank: &Bank, cluster_info: &ClusterInfo, log: boo
28652865
);
28662866
}
28672867
}
2868+
datapoint_info!(
2869+
"wfsm_gossip",
2870+
("online_stake", online_stake, i64),
2871+
("offline_stake", offline_stake, i64),
2872+
("total_activated_stake", total_activated_stake, i64),
2873+
);
28682874
}
28692875

28702876
online_stake_percentage as u64

0 commit comments

Comments
 (0)