pub async fn spawn_api_server( bind_address: SocketAddr, task_group: TaskGroup, ) -> Result<()>
Spawns an HTTP server that exposes Prometheus metrics on /metrics.
/metrics
Returns the error of binding bind_address.
bind_address