Welcome! Log In Create A New Profile

Advanced

Bytes sent to upstream

Posted by Pablo Fischer 
Pablo Fischer
Bytes sent to upstream
March 28, 2018 05:40AM
Hello,

Seems like the upstream_bytes_sent variable only exists for the
stream module and not for the http_upstream. Is there a way (via a
variable would be better) to know the bytes that nginx has sent to
upstream?

Thanks!
--
Pablo
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Maxim Dounin
Re: Bytes sent to upstream
March 28, 2018 03:10PM
Hello!

On Tue, Mar 27, 2018 at 08:28:42PM -0700, Pablo Fischer wrote:

> Seems like the upstream_bytes_sent variable only exists for the
> stream module and not for the http_upstream. Is there a way (via a
> variable would be better) to know the bytes that nginx has sent to
> upstream?

There is no such variable in nginx for http upstream connections.
Depending on your configuration, $request_length + $content_length
might be a good estimate.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login