Skip to content

Commit

Permalink
Merge branch 'master' into tory.add-last-oplog-entry-staleness-guage
Browse files Browse the repository at this point in the history
  • Loading branch information
torywheelwright authored Mar 29, 2024
2 parents 614f39b + bf16521 commit 21ab5db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/json"
stdlog "log"
"net/http"
"net/http/pprof"
"os"
"os/signal"
"strings"
Expand Down Expand Up @@ -269,5 +270,11 @@ func makeHTTPServer(clients []redis.UniversalClient, mongo *mongo.Client) *http.

mux.Handle("/metrics", promhttp.Handler())

mux.HandleFunc("/debug/pprof/", pprof.Index)
mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
mux.HandleFunc("/debug/pprof/trace", pprof.Trace)

return &http.Server{Addr: config.HTTPServerAddr(), Handler: mux}
}

0 comments on commit 21ab5db

Please sign in to comment.