package http import ( "net/http" "github.com/prometheus/client_golang/prometheus/promhttp" ) func NewPrometheusServer(port string, shouldRun chan bool) *Server { serverMux := http.NewServeMux() serverMux.Handle("/metrics", promhttp.Handler()) return NewServer(port, serverMux, shouldRun) }