Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow health endpoint on Mac #1848

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
528b27d
Update key derivation to latest EIP-2333 (#1633)
realbigsean Sep 23, 2020
c8fb9d9
Fix validator lockfiles (#1586)
paulhauner Sep 24, 2020
137966d
Directory restructure (#1532)
pawanjay176 Sep 29, 2020
29709c5
Implement standard eth2.0 API (#1569)
paulhauner Sep 29, 2020
1ad28c0
Add database schema versioning (#1688)
michaelsproul Sep 30, 2020
a8efefd
Add macOS compatibility to health endpoint
realbigsean Sep 30, 2020
df6a3f8
Add system endpoint, drives, network metrics
realbigsean Oct 1, 2020
e511c09
Sum network stats across interfaces
realbigsean Oct 2, 2020
05b7f01
Merge branch 'v0.3.0-staging' of https://github.com/sigp/lighthouse i…
realbigsean Oct 2, 2020
911cc60
fix linux dependency
realbigsean Oct 2, 2020
603941f
cargo clippy
realbigsean Oct 2, 2020
ff90d23
remove procinfo
realbigsean Oct 2, 2020
b9a357e
update drive metrics
realbigsean Oct 2, 2020
b193ae2
update drive metrics
realbigsean Oct 2, 2020
d4aa225
Merge branch 'v0.3.0-staging' of https://github.com/sigp/lighthouse i…
realbigsean Oct 2, 2020
f94ce56
VC updates
realbigsean Oct 2, 2020
146d67d
add log info
realbigsean Oct 2, 2020
7ca2ada
Revert log update
realbigsean Oct 2, 2020
0c2759d
Add drives info to the VC api
realbigsean Oct 2, 2020
c61008a
Add network stats to prometheus
realbigsean Oct 2, 2020
f32e8a0
Refactor Network::observe, start updating docs
realbigsean Oct 2, 2020
b170fbd
filter drives with zero total disk
realbigsean Oct 2, 2020
2fac4e9
Update lighthouse book examples
realbigsean Oct 2, 2020
79f27c8
fix vc api tests
realbigsean Oct 2, 2020
fd5cc65
update docs
realbigsean Oct 2, 2020
47e639b
Merge branch 'master' into system-endpoint
paulhauner Nov 2, 2020
c4b8bcd
Add MountInfo
paulhauner Nov 2, 2020
38f6e61
Remove system endpoints
paulhauner Nov 2, 2020
7e180d0
Add dbs for mac
paulhauner Nov 2, 2020
f6dea22
Split apart health endpoints
paulhauner Nov 2, 2020
62fb027
Move health into its own crate
paulhauner Nov 3, 2020
0c5ff90
Add status
paulhauner Nov 3, 2020
f0f21a1
Add CPU, memory guages
paulhauner Nov 3, 2020
6374c88
Start threading peer count, fix bug
paulhauner Nov 4, 2020
7d19fe8
Merge branch 'master' into health-mac
paulhauner Nov 4, 2020
c606666
Add eth1 and p2p status
paulhauner Nov 4, 2020
4e3c39f
Fix GB display
paulhauner Nov 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 93 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ members = [
"common/eth2_testnet_config",
"common/eth2_wallet_manager",
"common/hashset_delay",
"common/lighthouse_health",
"common/lighthouse_metrics",
"common/lighthouse_version",
"common/logging",
Expand Down
1 change: 1 addition & 0 deletions beacon_node/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ bus = "2.2.3"
directory = {path = "../../common/directory"}
http_api = { path = "../http_api" }
http_metrics = { path = "../http_metrics" }
eth2 = {path = "../../common/eth2"}
16 changes: 14 additions & 2 deletions beacon_node/client/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,18 @@ where
.runtime_context
.as_ref()
.ok_or_else(|| "build requires a runtime context".to_string())?;
let chain_db_path = self
.db_path
.ok_or_else(|| "build requires a chain db path context".to_string())?;
let freezer_db_path = self
.freezer_db_path
.ok_or_else(|| "build requires a freezer db path".to_string())?;

let db_paths = http_api::DBPaths {
chain_db: chain_db_path,
freezer_db: freezer_db_path,
};

let log = runtime_context.log().clone();

let http_api_listen_addr = if self.http_api_config.enabled {
Expand All @@ -334,6 +346,7 @@ where
chain: self.beacon_chain.clone(),
network_tx: self.network_send.clone(),
network_globals: self.network_globals.clone(),
db_paths: Some(db_paths.clone()),
eth1_service: self.eth1_service.clone(),
log: log.clone(),
});
Expand All @@ -358,8 +371,7 @@ where
let ctx = Arc::new(http_metrics::Context {
config: self.http_metrics_config.clone(),
chain: self.beacon_chain.clone(),
db_path: self.db_path.clone(),
freezer_db_path: self.freezer_db_path.clone(),
db_paths: Some(db_paths),
log: log.clone(),
});

Expand Down
1 change: 1 addition & 0 deletions beacon_node/http_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ warp_utils = { path = "../../common/warp_utils" }
slot_clock = { path = "../../common/slot_clock" }
eth2_ssz = { path = "../../consensus/ssz" }
bs58 = "0.3.1"
lighthouse_health = { path = "../../common/lighthouse_health" }

[dev-dependencies]
store = { path = "../store" }
Expand Down
Loading