You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using the error_page directive with a static page serving the 5xx errors (see the snippet below) and when the backend upstream returned a 5xx http code, I was seeing something like this in the metrics:
@franciscocpg
Hi,Thanks.
Could you tell me what is the detail of backend-service-1 and backend-service-2 before you change the static pages config?
We cannot see the both of upstream at all. It is necessary to figure out what happened.
After you changed to use web-error-pages, it seems to work completely fine because all the request arrived at the location of the /error-pages/500 can be proxied for the upstream of the web-error-page.
I was using the
error_page
directive with a static page serving the 5xx errors (see the snippet below) and when the backend upstream returned a5xx
http code, I was seeing something like this in the metrics:static page serving the 5xx errors config
Then I changed the config to use an upstream to serve the error pages instead of a static page, eg:
upstream serving the 5xx errors config
And now when my backend upstream returns a
5xx
http code I see the following in the metrics:So I lost track of which origin upstream is returning the error since the metrics are being aggregated in the
web-error-pages
upstream.Is there a way to make this change keeping track of which origin upstream is returning a
5xx
error code?The text was updated successfully, but these errors were encountered: