Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 775534 - Add statsd logging for requests.

  • Loading branch information...
commit 6e7ac6dcc955fb62d0f1a2c6537ca7cfe8e0024f 1 parent 3e5eb41
@Rik Rik authored
View
6 .gitmodules
@@ -16,3 +16,9 @@
[submodule "vendor-local/src/django-dnt"]
path = vendor-local/src/django-dnt
url = https://github.com/mozilla/django-dnt.git
+[submodule "vendor-local/src/django-statsd"]
+ path = vendor-local/src/django-statsd
+ url = git://github.com/andymckay/django-statsd.git
+[submodule "vendor-local/src/pystatsd"]
+ path = vendor-local/src/pystatsd
+ url = git://github.com/jsocol/pystatsd.git
View
2  requirements/prod.txt
@@ -27,3 +27,5 @@ Babel>=0.9.4
-e git://github.com/fwenzel/django-mozilla-product-details#egg=django-mozilla-product-details
python-memcached==1.45
+
+django-statsd-mozilla==0.3.5
View
3  settings/base.py
@@ -352,6 +352,8 @@ def JINJA_CONFIG():
'lib/product_details_json')
MIDDLEWARE_CLASSES = (
+ 'django_statsd.middleware.GraphiteRequestTimingMiddleware',
+ 'django_statsd.middleware.GraphiteMiddleware',
'funfactory.middleware.LocaleURLMiddleware',
#'multidb.middleware.PinningRouterMiddleware',
'django.middleware.common.CommonMiddleware',
@@ -371,6 +373,7 @@ def JINJA_CONFIG():
'funfactory', # Content common to most playdoh-based apps.
'jingo_minify',
'tower', # for ./manage.py extract (L10n)
+ 'django_statsd',
# Django contrib apps
'django.contrib.auth',
View
5 settings/local.py-dist
@@ -26,3 +26,8 @@ EMAIL_HOST_PASSWORD = ''
EMAIL_HOST = ''
EMAIL_PORT = 25
EMAIL_USE_TLS = False
+
+STATSD_HOST = ''
+STATSD_PORT = 8125
+STATSD_PREFIX = 'bedrock'
+STATSD_CLIENT = 'django_statsd.clients.normal'
1  vendor-local/src/django-statsd
@@ -0,0 +1 @@
+Subproject commit d77e1c60ae07d9a253e084f11969c2803f1800d3
1  vendor-local/src/pystatsd
@@ -0,0 +1 @@
+Subproject commit 3e78169def352792ace04317096208fb782fc348
View
2  vendor-local/vendor.pth
@@ -4,6 +4,8 @@ src/basket-client
src/feedparser/feedparser
src/django-recaptcha
src/django-dnt
+src/django-statsd
+src/pystatsd
packages/requests
packages/certifi
packages/chardet
Please sign in to comment.
Something went wrong with that request. Please try again.