forked from mirrors/statsd_exporter
use http.DefaultServeMux to support pprof
Signed-off-by: davinlu <davinlu@tencent.com>
This commit is contained in:
parent
ef6627b9f0
commit
f4fe58dcf2
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -494,7 +494,7 @@ func main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mux := http.NewServeMux()
|
mux := http.DefaultServeMux
|
||||||
mux.Handle(*metricsEndpoint, promhttp.Handler())
|
mux.Handle(*metricsEndpoint, promhttp.Handler())
|
||||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Write([]byte(`<html>
|
w.Write([]byte(`<html>
|
||||||
|
|
Loading…
Reference in a new issue