django-statsd is a django app that submits query and view durations to Etsy's statsd.
Project description
Introduction
django_statsd is a middleware that uses python-statsd to log query and view durations to statsd.
- Python Statsd
- Graphite
Install
To install simply execute python setup.py install. If you want to run the tests first, run python setup.py nosetests
Usage
Just add django_statsd to the installed_apps and add django_statsd.middleware.TimingMiddleware to 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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-statsd-1.5.tar.gz
(2.9 kB
view details)
Built Distribution
django_statsd-1.5-py2.6.egg
(7.6 kB
view details)
File details
Details for the file django-statsd-1.5.tar.gz
.
File metadata
- Download URL: django-statsd-1.5.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09bfcd0fa110284b64612a7f4de8a3d1150ac3200be49dffbd4b5deb8a786992 |
|
MD5 | a7bcd79b2db7b7e6d683056a468f0c97 |
|
BLAKE2b-256 | 706e0e8823b63ea020ced3b212f122c7fb751c19543c68258226cfa4ffe64f19 |
File details
Details for the file django_statsd-1.5-py2.6.egg
.
File metadata
- Download URL: django_statsd-1.5-py2.6.egg
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d61c97c63cbebf85c4db53113419340b61896c2316ee08e1913b068d96ef92f4 |
|
MD5 | 90ad9cfd07a62cd1f8d1020a7affae7d |
|
BLAKE2b-256 | 2e09c9ad4361dbe7fdc513e6fae40804d41c4a6d4acb4718cae8b75ad9edbddd |