App for collect Django statistics into PinbaEngine.
- Using pip:
$ pip install django-pinba
- Add
pinba.middleware.PinbaMiddleware
middleware toMIDDLEWARE_CLASSES
on your settings - Add pinba-engine server configuration:
PINBA_SERVER = '192.168.55.11'
PINBA_PORT = 30002
PINBA_ENABLED = True
PINBA_DISABLE_ADMIN = True
from time import sleep
from pinba.timers import get_monitor
monitor = get_monitor()
timer = monitor.timer(foo='bar')
timer.start()
sleep(0.5)
timer.stop()
monitor.send()
- PinbaEngine==1.1.0
- PinBoard==1.5.2
- pynba==0.5.4