Remove dogstatsd-python in favor of dogapi

Also added datadog application to commom django apps and set it to use
a local statsd server by default.
This commit is contained in:
Carlos Andrés Rocha
2013-09-09 16:15:24 -04:00
parent 0734d835a1
commit ee0004e2f8
15 changed files with 97 additions and 64 deletions

View File

@@ -13,7 +13,7 @@ from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from requests.auth import HTTPBasicAuth
from statsd import statsd
from dogapi import dog_stats_api
from capa.xqueue_interface import XQueueInterface
from mitxmako.shortcuts import render_to_string
@@ -332,7 +332,7 @@ def get_module_for_descriptor_internal(user, descriptor, field_data_cache, cours
if grade_bucket_type is not None:
tags.append('type:%s' % grade_bucket_type)
statsd.increment("lms.courseware.question_answered", tags=tags)
dog_stats_api.increment("lms.courseware.question_answered", tags=tags)
# TODO (cpennington): When modules are shared between courses, the static
# prefix is going to have to be specific to the module, not the directory