Skip to main content

This app collects data from supervisor instances on one or multiple servers, stores and visualizes it.

Project description

# djangovisor

This is a django project, which collects data from <a href="" target="_blank">supervisor</a> instances on one or multiple servers, stores it and plots it it using <a href="" target="_blank">bootstrap</a> and the javascript library <a href="" target="_blank">dygraphs</a>. Example website:

There is a very similar app for the server monitoring tool <a href="" target="_blank">monit</a> called <a href="" target="_blank">django-monit-collector</a>.

### Features
- Collects supervisor data from one or multiple servers.
- Collects process cpu and memory usage and stores the data for a given time period.
- Displays it in pretty graphs.
- Start/stop/restart buttons for processes.
- Shows the tails of spuervisor and process specific logfiles.
- Status tables and graphs are refreshing automatically via ajax.
- Processes are automatically removed when they stop sending data (removed from supervisord.conf). Servers can be deleted manually.

### Installation

Just install it via pip:
pip install djangovisor
Or clone the repository if you want to modify the code:
git clone

Add 'djangovisor' to your installed apps in
# ...
Include djangovisor in your
url(r'^djangovisor/', include('djangovisor.urls')),
On every server that should be monitored enable the xml web interface in your supervisord.conf:
If you use another port, you would have to change it in the script. Also, the port must not be blocked by the firewall, e.g.
ufw allow 9001
Since supervisor does not send process cpu and memory information, we use a script, which you have to copy to any server you want to observe.
You have to change the user and password in the script Then the simplest solution is to just run a cronjob, e.g. every minute:
crontab -e
* * * * * /usr/bin/python /path/to/
You can also use the script if you prefer using the library psutil, which has to be installed.

If you want to you can change the default values in your
# in seconds, should be the same as set in the crontab
# maximum days to store data, only correct, if UPDATE_PERIOD is set correctly
Set up your webserver and run:
python collectstatic
python migrate
python createsuperuser

### License
BSD License.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangovisor-0.9.tar.gz (172.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page