Merge pull request #1034 from prometheus/fix-pprof
Add POST handler for /debug to fix CPU profiling.
This commit is contained in:
commit
9bca70710b
|
@ -176,7 +176,9 @@ func New(st local.Storage, qe *promql.Engine, rm *rules.Manager, status *Prometh
|
|||
}
|
||||
|
||||
router.Post("/-/reload", h.reload)
|
||||
|
||||
router.Get("/debug/*subpath", http.DefaultServeMux.ServeHTTP)
|
||||
router.Post("/debug/*subpath", http.DefaultServeMux.ServeHTTP)
|
||||
|
||||
return h
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue