Skip to content

Commit 14a5055

Browse files
authored
Add WFSM stake metric (anza-xyz#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
1 parent cd9b189 commit 14a5055

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
@@ -2871,6 +2871,12 @@ fn get_stake_percent_in_gossip(bank: &Bank, cluster_info: &ClusterInfo, log: boo
28712871
);
28722872
}
28732873
}
2874+
datapoint_info!(
2875+
"wfsm_gossip",
2876+
("online_stake", online_stake, i64),
2877+
("offline_stake", offline_stake, i64),
2878+
("total_activated_stake", total_activated_stake, i64),
2879+
);
28742880
}
28752881

28762882
online_stake_percentage as u64

0 commit comments

Comments
 (0)