mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 04:48:21 +00:00
Anchor pre-PR: Dependency cleanup (#6769)
* remove ensure_dir_exists (2 deps saved) * group UNHANDLED_ERRORs into a generic (2 deps saved) * Introduce separate `health_metrics` crate * separate health_metrics crate * remove metrics from warp_utils * move ProcessHealth::observe and SystemHealth::observe to health_metrics * fix errors * nitpick `Cargo.toml`s --------- Co-authored-by: Daniel Knopik <daniel@dknopik.de> --------- Co-authored-by: ThreeHrSleep <151536303+ThreeHrSleep@users.noreply.github.com>
This commit is contained in:
@@ -21,6 +21,7 @@ eth2_keystore = { workspace = true }
|
||||
ethereum_serde_utils = { workspace = true }
|
||||
filesystem = { workspace = true }
|
||||
graffiti_file = { workspace = true }
|
||||
health_metrics = { workspace = true }
|
||||
initialized_validators = { workspace = true }
|
||||
lighthouse_validator_store = { workspace = true }
|
||||
lighthouse_version = { workspace = true }
|
||||
|
||||
@@ -33,6 +33,7 @@ use eth2::lighthouse_vc::{
|
||||
PublicKeyBytes, SetGraffitiRequest,
|
||||
},
|
||||
};
|
||||
use health_metrics::observe::Observe;
|
||||
use lighthouse_version::version_with_platform;
|
||||
use logging::SSELoggingComponents;
|
||||
use parking_lot::RwLock;
|
||||
|
||||
@@ -5,6 +5,7 @@ edition = { workspace = true }
|
||||
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
||||
|
||||
[dependencies]
|
||||
health_metrics = { workspace = true }
|
||||
lighthouse_validator_store = { workspace = true }
|
||||
lighthouse_version = { workspace = true }
|
||||
malloc_utils = { workspace = true }
|
||||
@@ -16,5 +17,6 @@ slot_clock = { workspace = true }
|
||||
types = { workspace = true }
|
||||
validator_metrics = { workspace = true }
|
||||
validator_services = { workspace = true }
|
||||
validator_store = { workspace = true }
|
||||
warp = { workspace = true }
|
||||
warp_utils = { workspace = true }
|
||||
|
||||
@@ -208,7 +208,7 @@ pub fn gather_prometheus_metrics<E: EthSpec>(
|
||||
scrape_allocator_metrics();
|
||||
}
|
||||
|
||||
warp_utils::metrics::scrape_health_metrics();
|
||||
health_metrics::metrics::scrape_health_metrics();
|
||||
|
||||
encoder
|
||||
.encode(&metrics::gather(), &mut buffer)
|
||||
|
||||
Reference in New Issue
Block a user