-
Notifications
You must be signed in to change notification settings - Fork 505
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
Improve HTTP metrics to distinguish client cancelled requests in 503 responses #3710
Comments
@bartekn , which metrics data model option is more preferable to capture client disconnect, since there is no standard HTTP code for client disconnects:
|
I think option 2 is great, much clearer and no new label dimension. I wasn't aware 499 existed, looks like nginx custom code but should be fine in our context. |
sreuland
added a commit
to sreuland/go
that referenced
this issue
Nov 24, 2021
…e of 499 rather than 503
sreuland
added a commit
to sreuland/go
that referenced
this issue
Nov 24, 2021
7 tasks
sreuland
added a commit
to sreuland/go
that referenced
this issue
Nov 24, 2021
sreuland
added a commit
to sreuland/go
that referenced
this issue
Nov 25, 2021
…basd on pr review feedback
sreuland
added a commit
to sreuland/go
that referenced
this issue
Nov 25, 2021
…ed unneeded test harness changes
sreuland
added a commit
to sreuland/go
that referenced
this issue
Nov 25, 2021
sreuland
added a commit
to sreuland/go
that referenced
this issue
Nov 25, 2021
…o fix the reported RACE condition in test
sreuland
added a commit
to sreuland/go
that referenced
this issue
Nov 29, 2021
…de db layer distinction of timeout vs cancel
sreuland
added a commit
to sreuland/go
that referenced
this issue
Nov 29, 2021
sreuland
added a commit
to sreuland/go
that referenced
this issue
Aug 7, 2022
…e of 499 rather than 503
sreuland
added a commit
to sreuland/go
that referenced
this issue
Aug 7, 2022
sreuland
added a commit
to sreuland/go
that referenced
this issue
Aug 7, 2022
sreuland
added a commit
to sreuland/go
that referenced
this issue
Aug 7, 2022
…basd on pr review feedback
sreuland
added a commit
to sreuland/go
that referenced
this issue
Aug 7, 2022
…ed unneeded test harness changes
sreuland
added a commit
to sreuland/go
that referenced
this issue
Aug 7, 2022
sreuland
added a commit
to sreuland/go
that referenced
this issue
Aug 7, 2022
…o fix the reported RACE condition in test
sreuland
added a commit
to sreuland/go
that referenced
this issue
Aug 7, 2022
…de db layer distinction of timeout vs cancel
sreuland
added a commit
to sreuland/go
that referenced
this issue
Aug 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version are you using?
2.4.1
What did you do?
If client disconnects the
horizon_http_requests_duration_seconds_count
metric records this withstatus=503
label. It's possible that it can affect alerting. We should be able to distinguish client initiated disconnects from actual 503 responses sent because ofctx
being cancelled.What did you expect to see?
Maybe we should add another boolean label to
horizon_http_requests_duration_seconds_count
to be able to tell which 503 were a result of client disconnects.The text was updated successfully, but these errors were encountered: