-
Notifications
You must be signed in to change notification settings - Fork 4.9k
HTTP CONNECT latency measurements #39146
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
Comments
Same issue as TCP latency. How would Envoy know what the request boundaries are? |
Yeah thinking about it a bit more, it definitely makes sense. Are there any recommendations on measuring latency in these strange edge cases? We still have packets flowing through Envoy, it'd be great to get some insight into how long it takes for the upstream and the downstream to respond. |
Feel free to close this issue if nothing exists today, I can focus on using tcp_info to provide the telemetry if needed. |
The best you can do is to report TCP RTT values, which are not currently exposed to access log. So unfortunately there are no values that Envoy can log for your case. |
I ended up finding tcp_stats, which appears to do what I need. Source for reference. From what I can see, this should let me see downstream RTT and upstream RTT. |
Title: HTTP CONNECT latency measurements
Description:
I'm using Envoy to act as a proxy server for long lived TCP connections. The way this works is our client sends an HTTP CONNECT to our proxy. When the response is returned, we keep the connection open. From what I can see, our
downstream_rq_time
metric measures the life of the connection, not when the request is received by the client. Is this expected? Are there any recommendations for measuring latency in cases where connections live for hours or days like this?[optional Relevant Links:]
The text was updated successfully, but these errors were encountered: