handler.go 259 B

12345678910111213
  1. package metrics
  2. import (
  3. "net/http"
  4. "github.com/prometheus/client_golang/prometheus"
  5. )
  6. // Handler returns the global http.Handler that provides the prometheus
  7. // metrics format on GET requests
  8. func Handler() http.Handler {
  9. return prometheus.Handler()
  10. }