Curl to localhost:8001/metrics return "Method not allowed" message

Hello,

I am new in Kong, and I’ve successfully set up Kong on some host. All of created service successfully running properly, however after the prometheus plugins has been added for global scope i’ve got this message when try to curl the /metrics path:

$ curl -i http://localhost:8001/metrics
HTTP/1.1 405 Not Allowed
Date: Wed, 11 Dec 2019 07:32:58 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
Server: kong/1.4.1
Content-Length: 32
X-Kong-Admin-Latency: 0

{"message":"Method not allowed"}

could you please tell me what the things should I have to check ?

Thanks,

You are running into https://github.com/Kong/kong/issues/5291.

Kong 1.4.2 is being released right now to fix this issue.
Watch out for the announcement today!