Detailed uwsgi stats plugin for munin
sudo wget -O /usr/share/munin/plugins/uwsgi_ https://github.com/stevetu/munin-uwsgi-stats/raw/master/uwsgi_
sudo chmod 755 /usr/share/munin/plugins/uwsgi_
sudo vi /usr/share/munin/plugins/uwsgi_ #edit UWSGI_STATS for host
sudo /usr/share/munin/plugins/uwsgi_ install
-
add stats server (see 1) to your uWSGI config, restart uWSGI, e.g. use 127.0.0.1:4999
-
use
nc 127.0.0.1 4999
to see if there's any JSON output -
edit
/etc/munin/plugin-conf.d/munin-node
[uwsgi_*]
env.addr 127.0.0.1:4999
-
Alternatively, you can edit
uwsgi_
source code directly for the stats server address. The global variable is calledUWSGI_STATS
-
sudo munin-run uwsgi_requests
to test run munin
BSD
- this one only trackes memory & process