Function polkadot_node_subsystem_util::metrics::prometheus::init_prometheus
source · pub async fn init_prometheus(
prometheus_addr: SocketAddr,
registry: Registry
) -> impl Future<Output = Result<(), Error>>
Expand description
Initializes the metrics context, and starts an HTTP server to serve metrics.