/django-pinba

App for collect statistics from Django into PinbaEngine

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

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