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

use 'moonbeam' prefix when emitting prometheus metrics #1329

Merged
merged 7 commits into from
Mar 3, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
70 changes: 43 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 node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ sc-telemetry = { git = "https://github.com/purestake/substrate", branch = "moonb
sc-tracing = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.17" }
sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.17" }
sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.17" }
substrate-prometheus-endpoint = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.16" }
try-runtime-cli = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.17", optional = true }

# Cumulus / Nimbus
Expand Down
4 changes: 2 additions & 2 deletions node/perf-test/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ where
RuntimeApiCollection<StateBackend = sc_client_api::StateBackendFor<FullBackend, Block>>,
Executor: NativeExecutionDispatch + 'static,
{
pub fn from_cmd(config: Configuration, _cmd: &PerfCmd) -> CliResult<Self> {
pub fn from_cmd(mut config: Configuration, _cmd: &PerfCmd) -> CliResult<Self> {
println!("perf-test from_cmd");
let sc_service::PartialComponents {
client,
Expand All @@ -94,7 +94,7 @@ where
frontier_backend,
fee_history_cache,
),
} = service::new_partial::<RuntimeApi, Executor>(&config, true)?;
} = service::new_partial::<RuntimeApi, Executor>(&mut config, true)?;

// TODO: review -- we don't need any actual networking
let (network, system_rpc_tx, network_starter) =
Expand Down
1 change: 1 addition & 0 deletions node/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ frame-benchmarking-cli = { git = "https://github.com/purestake/substrate", branc
[dev-dependencies]
assert_cmd = "0.12"
nix = "0.17"
prometheus = { version = "0.13.0", default-features = false }
rand = "0.7.3"

# Polkadot dev-dependencies
Expand Down
Loading