mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00
13 lines
219 B
Go
13 lines
219 B
Go
package metrics
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
|
)
|
|
|
|
func NewHandler() http.Handler {
|
|
mux := http.NewServeMux()
|
|
mux.Handle("/metrics", promhttp.Handler())
|
|
return mux
|
|
}
|