Skip to content

Commit 616e08e

Browse files
authored
send gunicorn statsd to dogstatsd! (#13082)
* send statsd to dogstatsd! noticed this was available while i was in the datadog docs today. this is nice because it should give us more granular insight into where an http status code originates from. i don't think the pyramid stats are emitted on error, cause i know they happen but i couldn't find a stat for them. * lint, reformat misses these since we copy them into the container
1 parent 84f3e7b commit 616e08e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gunicorn-prod.conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
accesslog = "-"
2626
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
2727

28+
statsd_host = "localhost:8125"
29+
2830

2931
def when_ready(server):
3032
open("/tmp/app-initialized", "w").close()

gunicorn-uploads.conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
accesslog = "-"
2626
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
2727

28+
statsd_host = "localhost:8125"
29+
2830

2931
def when_ready(server):
3032
open("/tmp/app-initialized", "w").close()

0 commit comments

Comments
 (0)