-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// Metrics related to the gossiping of L1 batch votes. | ||
#[derive(Debug, vise::Metrics)] | ||
#[metrics(prefix = "network_gossip_attestation")] | ||
pub(crate) struct Metrics { | ||
/// Batch to be attested. | ||
pub(crate) batch_number: vise::Gauge<u64>, | ||
|
||
/// Number of members in the attester committee. | ||
pub(crate) committee_size: vise::Gauge<usize>, | ||
|
||
/// Number of votes collected for the current batch. | ||
pub(crate) votes_collected: vise::Gauge<usize>, | ||
|
||
/// Weight percentage (in range [0,1]) of votes collected for the current batch. | ||
pub(crate) weight_collected: vise::Gauge<f64>, | ||
} | ||
|
||
#[vise::register] | ||
pub(super) static METRICS: vise::Global<Metrics> = vise::Global::new(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters