forked from mirrors/statsd_exporter
Merge pull request #386 from royeo/feature/pprof
use http.DefaultServeMux to support pprof
This commit is contained in:
commit
e395798230
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -498,7 +498,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