<div dir="ltr">Thank you Philip! upstream_header_time it's exactly what I'm looking for.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 21, 2016 at 2:20 PM, Philip Walenta <span dir="ltr"><<a href="mailto:philip.walenta@gmail.com" target="_blank">philip.walenta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Igor,<div><br></div><div>Not sure if this will help, but I gather several metrics from the front end to make a determination how long back end responses take.</div><div><br></div><div>Here's a snippet from my log format that might help:</div><div><br></div><div>"upstream_server":"$upstream_<wbr>addr", "req_total_time":"$request_<wbr>time", "req_upstream_time":"$<wbr>upstream_response_time", "upstream_conn_time":"$<wbr>upstream_connect_time", "upstream_header_time":"$<wbr>upstream_header_time"<br></div><div><br></div><div>You can find all the variables here:</div><div><br></div><div><a href="http://nginx.org/en/docs/varindex.html" target="_blank">http://nginx.org/en/docs/<wbr>varindex.html</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Nov 21, 2016 at 5:09 AM, Igor Karymov <span dir="ltr"><<a href="mailto:ingham.k@gmail.com" target="_blank">ingham.k@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">Hello. I'm using Nginx as WebSocket proxy and trying to set up the metric that will show me how quick gateway can establish new connections. Unfortunately, looks like when I parse logs I have only "response_time" that in the case of WebSockets  will be better to call "connection time". Any ideas how can I get time between GET request and 101 response?<br></div>
<br></span>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailm<wbr>an/listinfo/nginx</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br></div>