mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 23:04:53 +00:00
Add op pool metrics for attestations (#2758)
## Proposed Changes Add several metrics for the number of attestations in the op pool. These give us a way to observe the number of valid, non-trivial attestations during block packing rather than just the size of the entire op pool.
This commit is contained in:
@@ -11,4 +11,17 @@ lazy_static! {
|
||||
"op_pool_attestation_curr_epoch_packing_time",
|
||||
"Time to pack current epoch attestations"
|
||||
);
|
||||
pub static ref NUM_PREV_EPOCH_ATTESTATIONS: Result<IntGauge> = try_create_int_gauge(
|
||||
"op_pool_prev_epoch_attestations",
|
||||
"Number of valid attestations considered for packing from the previous epoch"
|
||||
);
|
||||
pub static ref NUM_CURR_EPOCH_ATTESTATIONS: Result<IntGauge> = try_create_int_gauge(
|
||||
"op_pool_curr_epoch_attestations",
|
||||
"Number of valid attestations considered for packing from the current epoch"
|
||||
);
|
||||
pub static ref MAX_COVER_NON_ZERO_ITEMS: Result<IntGaugeVec> = try_create_int_gauge_vec(
|
||||
"op_pool_max_cover_non_zero_items",
|
||||
"Number of non-trivial items considered in a max coverage optimisation",
|
||||
&["label"]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user