django-toolbar-statsd

Software Screenshot:
django-toolbar-statsd
Software Details:
Version: 0.1
Upload Date: 15 Apr 15
Developer: Andy McKay
Distribution Type: Freeware
Downloads: 13

Rating: nan/5 (Total Votes: 0)

Before you can think about getting this to work you'll need:

- A graphite server running processing the data from statsd
- Some django middleware that sends the data to statsd

Pystatsd: https://github.com/andymckay/pystatsd

You will need this fork until my pull request is merged.

Graphite: http://graphite.wikidot.com/installation

Django debug toolbar: https://github.com/django-debug-toolbar/django-debug-toolbar

Nuggets: https://github.com/mozilla/nuggets

An example Django app that logs to statsd on each request if you add the following to your middleware:

MIDDLEWARE_CLASSES = (
 'commonware.response.middleware.GraphiteRequestTimingMiddleware',
 'commonware.response.middleware.GraphiteMiddleware',
)


If you've got that, you may install. To your settings, add the following:

DEBUG_TOOLBAR_PANELS = (
 ...
 'toolbar_statsd.panel.StatsdPanel'
)

STATSD_CLIENT = 'toolbar_statsd.panel'

TOOLBAR_STATSD = {
 'graphite': 'http://your.graphite.server',
 'roots': ['root.key.for.dev', 'root.key.for.stage']
}

INSTALLED_APPS = (
 ...
 'toolbar_statsd'
)


Notes: django-debug-toolbar middleware must come after graphite middleware.

See: example.png for an example of the fun that can be had.

Requirements:

  • Python
  • Django

Other Software of Developer Andy McKay

receipts
receipts

20 Feb 15

django-shellng
django-shellng

14 Apr 15

django-receipts
django-receipts

14 Apr 15

Comments to django-toolbar-statsd

Comments not found
Add Comment
Turn on images!