diff --git a/apiserver/httpserver/server.go b/apiserver/httpserver/server.go index 277489a19..a49aa1dbf 100644 --- a/apiserver/httpserver/server.go +++ b/apiserver/httpserver/server.go @@ -555,7 +555,7 @@ func (h *HTTPServer) postProcess(req *restful.Request, rsp *restful.Response) { recordApiCall := true if !ok { code = uint32(rsp.StatusCode()) - recordApiCall = code != http.StatusNotFound + recordApiCall = code != http.StatusNotFound && code != http.StatusMethodNotAllowed } diff := now.Sub(startTime)