benoitc/gunicorn — pull request #887 by jssjr (2014-09-12 18:59:03+00:00)
Title: Allow for statsd metrics to be prefixed

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.