When we serve a HTTP service via uWSGI, we can monitor its stats via uwsgitop.
Install#
uwsgitop is a performance monitoring tool built for uWSGI.
It can be installed via pip:
pip3 install uwsgitopUsage#
Using socket#
Add the following to your uWSGI config:
stats=/tmp/stats.socketThen use uwsgitop to monitor the stats:
uwsgitop /tmp/stats.socketIn this case, uwsgitop should be installed on the same machine as your service.
Using HTTP#
If you want to monitor the service via HTTP, add the following to uWSGI conf:
stats=0.0.0.0:1235
stats-http=trueThen run uwsgitop:
uwsgitop http://127.0.0.1:1717The meaning of output is explained here.