containerd/vendor/github.com/docker/go-metrics/handler.go
Lantao Liu 45b6e75803 Update containerd to 129167132c.
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-02-21 02:52:57 +00:00

14 lines
259 B
Go

package metrics
import (
"net/http"
"github.com/prometheus/client_golang/prometheus"
)
// Handler returns the global http.Handler that provides the prometheus
// metrics format on GET requests
func Handler() http.Handler {
return prometheus.Handler()
}