mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Add POST handler for /debug to fix CPU profiling.
`go tool pprof` sends a POST request to enable CPU profiling, so we also need to handle that method.
This commit is contained in:
parent
20d0bf4d65
commit
1a1f8e7819
|
@ -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 a new issue