Monitoring Service Stat with uwsgitop
Contents
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 uwsgitop
Usage
Using socket
Add the following to your uWSGI config:
stats=/tmp/stats.socket
Then use uwsgitop
to monitor the stats:
uwsgitop /tmp/stats.socket
In 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=true
Then run uwsgitop
:
uwsgitop http://127.0.0.1:1717
The meaning of output is explained here.