How do I count the requests forwarded by nginx to other machines? Tcp connections between nginx and other machines

A machine deploys nginx, through uwsgi. The request will be forwarded to the BMagee C machine, and the uwsgi on the BMagee C machine will take over the request. If the port number of the uwsgi service on the BMagee C machine is, 21801802182, how to count the requests that nginx sends to these two ports of the two machines? Or how to count the TCP connections between nginx and the two uwsgi services of the BMague C machine?

Mar.21,2021
Menu