From caede3f6a5d9f26e79b784335b38aa3f28b96fdc Mon Sep 17 00:00:00 2001 From: Nikolas Nyby Date: Thu, 6 Nov 2025 11:48:32 -0500 Subject: [PATCH] Remove statsd, django-statsd-mozilla So, `django-statsd-mozilla` is unmaintained, and I have seen some issues when attempting to install this package in newer environments, with `statsd` as well. These metrics which are being sent to graphite are largely going unused, to my knowledge. I propose removing this for now and re-thinking this in the future if necessary. Our django-smoketest package doesn't rely on this, and hound *should* continue to function as normal, but I could be wrong. We'll see. --- CHANGES.txt | 1 + README.md | 2 -- ctlsettings/shared.py | 9 --------- setup.py | 2 -- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 9b76702..a815a36 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,7 @@ 0.4.5 ==================== * Remove coverage +* Remove statsd, django-statsd-mozilla 0.4.4 (2025-03-20) ==================== diff --git a/README.md b/README.md index 1fc7595..b9e05cf 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,10 @@ The following libraries are used in some way, so they'll need to be installed: * django-debug-toolbar * django-smoketest * django-extensions -* django-statsd-mozilla * django-storages * django-impersonate * boto3 * sentry-sdk -* statsd * gunicorn ### Use it diff --git a/ctlsettings/shared.py b/ctlsettings/shared.py index e4b4973..680f099 100644 --- a/ctlsettings/shared.py +++ b/ctlsettings/shared.py @@ -134,9 +134,6 @@ def common(**kwargs): ] MIDDLEWARE = [ - 'django_statsd.middleware.GraphiteRequestTimingMiddleware', - 'django_statsd.middleware.GraphiteMiddleware', - 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', @@ -161,7 +158,6 @@ def common(**kwargs): 'django.contrib.staticfiles', 'django.contrib.messages', 'django.contrib.admin', - 'django_statsd', 'smoketest', 'gunicorn', 'impersonate', @@ -171,11 +167,6 @@ def common(**kwargs): INTERNAL_IPS = ['127.0.0.1'] - STATSD_CLIENT = 'statsd.client' - STATSD_PREFIX = project - STATSD_HOST = 'localhost' - STATSD_PORT = 8125 - THUMBNAIL_SUBDIR = "thumbs" EMAIL_SUBJECT_PREFIX = "[" + project + "] " EMAIL_HOST = 'localhost' diff --git a/setup.py b/setup.py index 62ea458..e3c9d39 100644 --- a/setup.py +++ b/setup.py @@ -14,12 +14,10 @@ 'django-debug-toolbar', 'django-smoketest', 'django-extensions', - 'django-statsd-mozilla', 'sentry-sdk', 'django-storages', 'boto3', 'requests', - 'statsd', 'gunicorn', 'django-impersonate', ],