django-pinba

django pinba


Keywords
django, pinba
License
Other
Install
pip install django-pinba==1.3.0

Documentation

Django-Pinba

What's that

App for collect Django statistics into PinbaEngine.

Publications

Quick installation

  1. Using pip:
$  pip install django-pinba
  1. Add pinba.middleware.PinbaMiddleware middleware to MIDDLEWARE_CLASSES on your settings
  2. Add pinba-engine server configuration:
PINBA_SERVER = '192.168.55.11'
PINBA_PORT = 30002
PINBA_ENABLED = True
PINBA_DISABLE_ADMIN = True

Timers

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()

Requirements

  • PinbaEngine==1.1.0
  • PinBoard==1.5.2
  • pynba==0.5.4

Credits

Bitdeli badge