Starts an httpuv server that serves the /metrics endpoint in
Prometheus text exposition format.
Value
The httpuv server object (can be stopped with httpuv::stopServer()).
Examples
if (FALSE) { # \dontrun{
reg <- prometheus_registry()
srv <- serve_prometheus(reg, port = 9091)
# Scrape http://localhost:9091/metrics
httpuv::stopServer(srv)
} # }