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:
Julius Volz 2015-08-26 17:42:25 +02:00
parent 29eaa8c7cf
commit da2499d5a5
1 changed files with 2 additions and 0 deletions

View File

@ -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
}