Skip to content

Commit

Permalink
register metrics with prometheus for node service new_full fn
Browse files Browse the repository at this point in the history
  • Loading branch information
rustlang-dev committed Sep 19, 2024
1 parent 42afc52 commit 1d6ef0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,9 @@ where
&config.chain_spec,
);

let metrics = NotificationMetrics::new(None);// todo add registry
let metrics = Net::register_notification_metrics(
config.prometheus_config.as_ref().map(|cfg| &cfg.registry),
);

let (grandpa_protocol_config, grandpa_notification_service) =
sc_consensus_grandpa::grandpa_peers_set_config::<_, Net>(
Expand All @@ -424,7 +426,7 @@ where
Some(WarpSyncParams::WithProvider(warp_sync))
};

let metrics = NotificationMetrics::new(None);// todo add registry
let metrics = Net::register_notification_metrics(config.prometheus_registry());
let (network, system_rpc_tx, tx_handler_controller, network_starter, sync_service) =
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
Expand Down

0 comments on commit 1d6ef0f

Please sign in to comment.