Andy McKay

Jul 25, 2012


I just released django-statsd I've been doing lots of incremental pushes of django-statsd over the last few months. In the last versions I added the following...

A log client that will just log to a python logging handler. This is quicker and easier to set up than the toolbar which is still fraught with pitfalls. A quick example would be setting this:

STATSD_CLIENT = 'django_statsd.clients.log'
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
    'loggers': {
        'statsd': {
            'handlers': ['console'],

... and you'll get the statsd pings in your console. Useful for development.

I've been collecting navigation timing on Mozilla sites for a while, but they haven't been supeer useful. In an attempt to copy what New Relic do, I started parsing the timing data in a similar manner. Giving some new statistics from navigation timing: network, app, dom and rendering. Although I think I still need to refine those.

Finally, if you can get Django debug toolbar and django-statsd working together, you should now be rewarded with a nice waterfall view of the timings, for example:

That's it for now.