Function substrate_prometheus_endpoint::init_prometheus [−][src]
pub async fn init_prometheus(
prometheus_addr: SocketAddr,
registry: Registry
) -> Result<(), Error>
Initializes the metrics context, and starts an HTTP server to serve metrics.