Skip to content

b2bpolis/munin-uwsgi-stats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

munin-uwsgi-stats

Detailed uwsgi stats plugin for munin. In order to get the stats it uses both the uwsgi stats server and the operating system's process list (for stuff that's not available through the stats server, or wherever the stats server sucks).

Installation

pip install psutil
wget -O /usr/share/munin/plugins/uwsgi_  https://github.com/wikical/munin-uwsgi-stats/raw/master/uwsgi_
chmod 755 /usr/share/munin/plugins/uwsgi_

Configuration

  1. add the stats server to your uWSGI config and restart uWSGI (for example, use 127.0.0.1:4999; try "nc 127.0.0.1 4999" to see if there's any JSON output).

  2. edit /etc/munin/plugin-conf.d/munin-node:

    [uwsgi_*]
    user root
    env.port 4999
    env.name My_uwsgi
    

    The port can be either a TCP port or the filename to a unix domain socket. The uwsgi server must run on localhost; if the specified port is a TCP port, the host is assumed to be 127.0.0.1.

    If you are monitoring more than one uwsgi applications you can specify many ports and names, like this:

    [uwsgi_*]
    user root
    env.port 4999 4998 4997
    env.name app1 app2 app3
    

License

Modified BSD - see file LICENSE for details

About

Detailed uwsgi stats plugin for munin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%