Skip to main content
  1. Posts/

Monitoring Service Stat with uwsgitop

·107 words·1 min·
Python UWSGI
Table of 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.

References
#

Related

Serving Flask Applications with uWSGI
··757 words·4 mins
Python Flask UWSGI
uWSGI Install and Use Issues
··627 words·3 mins
Python UWSGI
Retry for Google Cloud Client
·197 words·1 min
Python GCP