mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
* Tracing executor and metrics rename * Appease clippy * Merge branch 'unstable' into modularise-task-executor
24 lines
704 B
Rust
24 lines
704 B
Rust
pub use metrics::*;
|
|
use std::sync::LazyLock;
|
|
|
|
pub static SYNC_SLOTS_PER_SECOND: LazyLock<Result<IntGauge>> = LazyLock::new(|| {
|
|
try_create_int_gauge(
|
|
"sync_slots_per_second",
|
|
"The number of blocks being imported per second",
|
|
)
|
|
});
|
|
|
|
pub static IS_SYNCED: LazyLock<Result<IntGauge>> = LazyLock::new(|| {
|
|
try_create_int_gauge(
|
|
"sync_eth2_synced",
|
|
"Metric to check if the beacon chain is synced to head. 0 if not synced and non-zero if synced"
|
|
)
|
|
});
|
|
|
|
pub static NOTIFIER_HEAD_SLOT: LazyLock<Result<IntGauge>> = LazyLock::new(|| {
|
|
try_create_int_gauge(
|
|
"notifier_head_slot",
|
|
"The head slot sourced from the beacon chain notifier",
|
|
)
|
|
});
|