Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record upstream failed connections #5

Open
1 of 2 tasks
maneta opened this issue Nov 23, 2017 · 1 comment
Open
1 of 2 tasks

Record upstream failed connections #5

maneta opened this issue Nov 23, 2017 · 1 comment

Comments

@maneta
Copy link

maneta commented Nov 23, 2017

We need to record failed connections to the upstream. The idea is to log those upstream calls so we could detect failing backends.

  • The variable $upstream_status should have the upstream response code ([prometheus] metric for upstream status / proxy status #30)
  • The variables $upstream_connect_time and $upstream_response_time are usefull to debug timeouts and $upstream_addr should have the resolved ip address we tried to connect to.
@maneta maneta self-assigned this Nov 23, 2017
@mikz
Copy link
Contributor

mikz commented Feb 6, 2018

Also it is possible to detect if the failure comes from openresty. If there is some error ngx.status will be 500, but $upstream_status will be nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants