8728c40102
## Issue Addressed N/A ## Proposed Changes With https://github.com/sigp/lighthouse/pull/3214 we made it such that you can either have 1 auth endpoint or multiple non auth endpoints. Now that we are post merge on all networks (testnets and mainnet), we cannot progress a chain without a dedicated auth execution layer connection so there is no point in having a non-auth eth1-endpoint for syncing deposit cache. This code removes all fallback related code in the eth1 service. We still keep the single non-auth endpoint since it's useful for testing. ## Additional Info This removes all eth1 fallback related metrics that were relevant for the monitoring service, so we might need to change the api upstream.
29 lines
1004 B
Rust
29 lines
1004 B
Rust
pub use lighthouse_metrics::*;
|
|
|
|
lazy_static! {
|
|
/*
|
|
* Eth1 blocks
|
|
*/
|
|
pub static ref BLOCK_CACHE_LEN: Result<IntGauge> =
|
|
try_create_int_gauge("eth1_block_cache_len", "Count of eth1 blocks in cache");
|
|
pub static ref LATEST_CACHED_BLOCK_TIMESTAMP: Result<IntGauge> =
|
|
try_create_int_gauge("eth1_latest_cached_block_timestamp", "Timestamp of latest block in eth1 cache");
|
|
|
|
/*
|
|
* Eth1 deposits
|
|
*/
|
|
pub static ref DEPOSIT_CACHE_LEN: Result<IntGauge> =
|
|
try_create_int_gauge("eth1_deposit_cache_len", "Number of deposits in the eth1 cache");
|
|
pub static ref HIGHEST_PROCESSED_DEPOSIT_BLOCK: Result<IntGauge> =
|
|
try_create_int_gauge("eth1_highest_processed_deposit_block", "Number of the last block checked for deposits");
|
|
|
|
/*
|
|
* Eth1 rpc connection
|
|
*/
|
|
|
|
pub static ref ETH1_CONNECTED: Result<IntGauge> = try_create_int_gauge(
|
|
"sync_eth1_connected", "Set to 1 if connected to an eth1 node, otherwise set to 0"
|
|
);
|
|
|
|
}
|