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
- Install module:
pip install django-tutu
- Add settings:
from tutu.metrics import *
INSTALLED_TUTU_METRICS = [Uptime, SystemLoad, Memory]
- 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"))
-
Run
manage.py migrate tutu
to generate the databse tables. -
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
- Point your browser to
/tutu
to see pretty graphs.