1 package http 2 3 import ( 4 "net/http" 5 6 "github.com/prometheus/client_golang/prometheus/promhttp" 7 ) 8 9 func NewPrometheusServer(port string, shouldRun chan bool) *Server { 10 serverMux := http.NewServeMux() 11 12 serverMux.Handle("/metrics", promhttp.Handler()) 13 14 return NewServer(port, serverMux, shouldRun) 15 } 16