The scout_statsd_django
extension instruments Django applications served by Django with StatsD. This extension was forked from django_statsd is maintained by Scout for our hosted StatsD service but is compatible with any StatsD collector.
Original project documentation is on Read the Docs.
The following metrics are reported:
- Response code rates (2XX, 3XX, 4XX, 5XX, etc)
- Response time
- Request throughput
Add the package:
pip install git+git://github.com/scoutapp/scout_statsd_django.git
Next, update setttings.py
and add the following middleware to the top of the list:
MIDDLEWARE_CLASSES = (
'django_statsd.middleware.StatsMiddleware', )
+ MIDDLEWARE_CLASSES
Just install the Scoutd agent on the host(s) serving the app to see the Django metrics in the Scout UI.
This extension is laser-focused on Django-related metrics. Other scout_statsd_X
extensions instrument different areas of code and frameworks.
Create an issue or shoot an email to support@scoutapp.com
- Fork it
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
BSD and MPL
Portions of this are from commonware: