django-tutu

Performance graphs for django projects


License
MIT-feh
Install
pip install django-tutu==0.1.0

Documentation

django-tutu

This project is a django based performance monitor. It is much like munin, but is written as a django app, so it is easy to deploy alongside a Django project.

Every line of code written for this project has been recorded and uploaded to youtube. You can watch these videos here.

This project works in both Python 2.7 and Python 3.0+. It works with Django 1.11 and 3.0

Installation

  1. Install module:
pip install django-tutu
  1. Add settings:
from tutu.metrics import *
INSTALLED_TUTU_METRICS = [Uptime, SystemLoad, Memory]
  1. Add urls to your project's urls.py:

In Django 1.11:

url('tutu/', include("tutu.urls"))

or with Django 3.0:

path('tutu/', include("tutu.urls"))
  1. Run manage.py migrate tutu to generate the databse tables.

  2. Add the tutu_tick management command to your system's crontab and have it run every 5 minutes (or however often you would like)

crontab -e
* * * * */5 python /path/to/manage.py tutu_tick
  1. Point your browser to /tutu to see pretty graphs.