Kong prometheus plugin does not record 404 response codes from proxy #12976
Labels
pending author feedback
Waiting for the issue author to get back to a maintainer with findings, more details, etc...
plugins/prometheus
stale
Is there an existing issue for this?
Kong version (
$ kong version
)3.6.1
Current Behavior
When we enable the Prometheus plugin globally, and the proxy returns 404 response codes, the Prometheus plugin does not log the 404 status codes.
This gives us no way to monitor for 404 errors that could be caused by scenarios such as invalid configurations pushed to Kong, resulting in the Kong proxy rejecting all requests.
Expected Behavior
Prometheus metric endpoint records 404 response codes
Steps To Reproduce
Declarative config(
declarative/kong.yaml
):Docker Compose:
Generate some random traffic
http://localhost:8000/random
that makes kong return404
, the hithttp://localhost:8001/metrics
, you will see no404
reported by prometheus plugin.The text was updated successfully, but these errors were encountered: