You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
259 B
Go
14 lines
259 B
Go
6 years ago
|
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()
|
||
|
}
|