prow/cmd/plank/main.go
func serve() {
	http.Handle("/metrics", promhttp.Handler())
	logrus.WithError(http.ListenAndServe(":8080", nil)).Fatal("ListenAndServe returned.")
}
func serve() {
	http.Handle("/metrics", promhttp.Handler())
	logrus.WithError(http.ListenAndServe(":8080", nil)).Fatal("ListenAndServe returned.")
}
func serve ( ) { http . Handle ( " " , promhttp . Handler ( ) ) logrus . WithError ( http . ListenAndServe ( " " , nil ) ) . Fatal ( " " ) }
// serve starts a http server and serves prometheus metrics.
// Meant to be called inside a goroutine.
serve starts a http server and serves prometheus metrics . Meant to be called inside a goroutine .