mgood/gunicorn — pull request #1 by jssjr (2014-09-12 18:51:37+00:00)
Title: Allow statsd metrics to be prefixed with a namespace

If multiple gunicorns are run in an infrastructure, it's necessary to namespace the resulting statsd metrics so the instrumentation generated by each instance can be evaluated.

This adds the `--statsd-prefix=""` option to gunicorn. By default the string is empty and does not change existing behavior. However, the prefix can be populated with any string, allowing for gunicorn metrics to be namespaced by host, environment, application, etc.

Typically, you'd want to set a prefix that ends in a `.` so the statsd metric is nested into the namespace, but this is not required.