django-statsd 1.9.2

django-statsd is a django app that submits query and view durations to Etsy's statsd.

Introduction

django_statsd is a middleware that uses python-statsd to log query and view durations to statsd.

Install

To install simply execute python setup.py install. If you want to run the tests first, run python setup.py nosetests

Usage

To install, add the following to your settings.py:

  1. django_statsd to the INSTALLED_APPS setting.

  2. django_statsd.middleware.StatsdMiddleware to the top of your

    MIDDLEWARE_CLASSES

  3. django_statsd.middleware.StatsdMiddlewareTimer to the bottom of your

    MIDDLEWARE_CLASSES

Advanced Usage

>>> def some_view(request):
...     with request.timings('something_to_time'):
...         # do something here
...         pass
>>>
>>> def some_view(request):
...     request.timings.start('something_to_time')
...     # do something here
...     request.timings.stop('something_to_time')
BSD

Author

Rick van Hattem

Pip

django-statsd==1.9.2

Classifiers

  • License :: OSI Approved :: BSD License
File Type Python Version Uploaded On Downloads
django-statsd-1.9.2.tar.gz Source Aug. 22, 2014 935
Version Release Date
1.9.2 Aug. 22, 2014
1.9.1 Aug. 19, 2013
1.9.0 July 15, 2013
1.8.1 June 12, 2012
1.8.0 June 6, 2012
1.7.2 March 13, 2012
1.7.1 March 12, 2012
1.7 March 12, 2012
1.5 Aug. 9, 2011
1.4 Aug. 4, 2011
1.3 Aug. 4, 2011
1.2 Aug. 4, 2011
1.1 July 12, 2011
1.0 July 11, 2011
Date Package Version Action
Nov. 4, 2014, 1:53 p.m. django-statsd 1.7.1 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.8.1 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.8.0 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.9.2 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.9.0 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.9.1 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.7.2 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.3 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.2 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.1 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.0 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.7 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.5 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd 1.4 Release Created
Nov. 4, 2014, 1:53 p.m. django-statsd Package Created