django_statsd Package¶
django_statsd Package¶
settings Module¶
-
django_statsd.settings.STATSD_DEBUG= None¶ Enable warnings such as timers which are started but not finished. Defaults to DEBUG if not configured
-
django_statsd.settings.STATSD_HOST= '127.0.0.1'¶ Statsd host, defaults to 127.0.0.1
-
django_statsd.settings.STATSD_PORT= 8125¶ Statsd port, defaults to 8125
-
django_statsd.settings.STATSD_PREFIX= None¶ Set the global statsd prefix if needed. Otherwise use the root
-
django_statsd.settings.STATSD_SAMPLE_RATE= 1.0¶ Statsd sample rate, lowering this decreases the (random) odds of actually submitting the data. Between 0 and 1 where 1 means always
-
django_statsd.settings.STATSD_TAGS_LIKE= None¶ Enable creating tags as well as the bare version. This causes an ajax view to be stored both as the regular view name and as the ajax tag. Supported separators are _is_ and =
-
django_statsd.settings.STATSD_TRACK_MIDDLEWARE= False¶ Enable tracking all requests using the middleware
celery Module¶
database Module¶
middleware Module¶
-
class
django_statsd.middleware.StatsdMiddleware[source]¶ Bases:
object-
scope= <thread._local object>¶
-