Add attestation duty slot metric (#2704)

## Issue Addressed

Resolves #2521 

## Proposed Changes

Add a metric that indicates the next attestation duty slot for all managed validators in the validator client.
This commit is contained in:
Pawan Dhananjay
2023-02-09 23:51:17 +00:00
parent aa5b7ef783
commit 2b735a9e8b
5 changed files with 78 additions and 3 deletions

View File

@@ -172,6 +172,12 @@ lazy_static::lazy_static! {
"Duration to obtain a signature",
&["type"]
);
pub static ref ATTESTATION_DUTY: Result<IntGaugeVec> = try_create_int_gauge_vec(
"vc_attestation_duty_slot",
"Attestation duty slot for all managed validators",
&["validator"]
);
}
pub fn gather_prometheus_metrics<T: EthSpec>(