Skip to content
This repository
Browse code

Bug 775534 - Add statsd logging for requests.

  • Loading branch information...
commit 6e7ac6dcc955fb62d0f1a2c6537ca7cfe8e0024f 1 parent 3e5eb41
Anthony Ricaud Rik authored
6 .gitmodules
@@ -16,3 +16,9 @@
16 16 [submodule "vendor-local/src/django-dnt"]
17 17 path = vendor-local/src/django-dnt
18 18 url = https://github.com/mozilla/django-dnt.git
  19 +[submodule "vendor-local/src/django-statsd"]
  20 + path = vendor-local/src/django-statsd
  21 + url = git://github.com/andymckay/django-statsd.git
  22 +[submodule "vendor-local/src/pystatsd"]
  23 + path = vendor-local/src/pystatsd
  24 + url = git://github.com/jsocol/pystatsd.git
2  requirements/prod.txt
@@ -27,3 +27,5 @@ Babel>=0.9.4
27 27 -e git://github.com/fwenzel/django-mozilla-product-details#egg=django-mozilla-product-details
28 28
29 29 python-memcached==1.45
  30 +
  31 +django-statsd-mozilla==0.3.5
3  settings/base.py
@@ -352,6 +352,8 @@ def JINJA_CONFIG():
352 352 'lib/product_details_json')
353 353
354 354 MIDDLEWARE_CLASSES = (
  355 + 'django_statsd.middleware.GraphiteRequestTimingMiddleware',
  356 + 'django_statsd.middleware.GraphiteMiddleware',
355 357 'funfactory.middleware.LocaleURLMiddleware',
356 358 #'multidb.middleware.PinningRouterMiddleware',
357 359 'django.middleware.common.CommonMiddleware',
@@ -371,6 +373,7 @@ def JINJA_CONFIG():
371 373 'funfactory', # Content common to most playdoh-based apps.
372 374 'jingo_minify',
373 375 'tower', # for ./manage.py extract (L10n)
  376 + 'django_statsd',
374 377
375 378 # Django contrib apps
376 379 'django.contrib.auth',
5 settings/local.py-dist
@@ -26,3 +26,8 @@ EMAIL_HOST_PASSWORD = ''
26 26 EMAIL_HOST = ''
27 27 EMAIL_PORT = 25
28 28 EMAIL_USE_TLS = False
  29 +
  30 +STATSD_HOST = ''
  31 +STATSD_PORT = 8125
  32 +STATSD_PREFIX = 'bedrock'
  33 +STATSD_CLIENT = 'django_statsd.clients.normal'
1  vendor-local/src/django-statsd
... ... @@ -0,0 +1 @@
  1 +Subproject commit d77e1c60ae07d9a253e084f11969c2803f1800d3
1  vendor-local/src/pystatsd
... ... @@ -0,0 +1 @@
  1 +Subproject commit 3e78169def352792ace04317096208fb782fc348
2  vendor-local/vendor.pth
@@ -4,6 +4,8 @@ src/basket-client
4 4 src/feedparser/feedparser
5 5 src/django-recaptcha
6 6 src/django-dnt
  7 +src/django-statsd
  8 +src/pystatsd
7 9 packages/requests
8 10 packages/certifi
9 11 packages/chardet

0 comments on commit 6e7ac6d

Please sign in to comment.
Something went wrong with that request. Please try again.