Description of problem: We found that in OCP4, the router does not return 4xx error codes. This makes it impossible to calculate accurate SLIs. Example query: sum(irate(haproxy_frontend_http_responses_total{frontend=~"$frontend",code=~"$code",instance=~"$host:$port"}[5m])) by (code)
Originally filed here: https://github.com/openshift/router/issues/81
The PR merge made into "4.5.0-0.nightly-2020-05-18-165746" release version and it is noted that the 4xx metrics are being exposed properly.
Created attachment 1690070 [details] reference 4xx prometheus query on v4.4 UI
Created attachment 1690071 [details] 4xx queries in prometheus UI on patched nightly version
For future reference this was backported to 4.4 in https://github.com/openshift/router/pull/141
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409