From 992eaaac24a603129ec38f310283728629be8b4c Mon Sep 17 00:00:00 2001 From: Igor Konforti Date: Fri, 16 Feb 2018 18:18:00 +0200 Subject: [PATCH 1/3] missing prefix for the statsd --- docs/source/instrumentation.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/source/instrumentation.rst b/docs/source/instrumentation.rst index b4578a73..8fe7ad09 100644 --- a/docs/source/instrumentation.rst +++ b/docs/source/instrumentation.rst @@ -30,4 +30,13 @@ all requests. The following metrics are generated: * ``gunicorn.log.warning``: rate of warning log messages * ``gunicorn.log.exception``: rate of exceptional log messages + +``Statsd`` logger also provides a prefix for the metrics: + +* ``--statsd-prefix STATSD_PREFIX`` +* ```` + +A trailing ``.`` is added, if not provided. + + .. _statsD: https://github.com/etsy/statsd From aa9562624d5de7716be54ae60b4b76b898311640 Mon Sep 17 00:00:00 2001 From: Igor Konforti Date: Sun, 18 Feb 2018 19:35:53 +0200 Subject: [PATCH 2/3] less text is more... --- docs/source/instrumentation.rst | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/source/instrumentation.rst b/docs/source/instrumentation.rst index 8fe7ad09..abb057f4 100644 --- a/docs/source/instrumentation.rst +++ b/docs/source/instrumentation.rst @@ -17,7 +17,7 @@ To use statsD, just tell Gunicorn where the statsD server is: .. code-block:: bash - $ gunicorn --statsd-host=localhost:8125 ... + $ gunicorn --statsd-host=localhost:8125 --statsd-prefix=service.app ... The ``Statsd`` logger overrides ``gunicorn.glogging.Logger`` to track all requests. The following metrics are generated: @@ -31,12 +31,5 @@ all requests. The following metrics are generated: * ``gunicorn.log.exception``: rate of exceptional log messages -``Statsd`` logger also provides a prefix for the metrics: - -* ``--statsd-prefix STATSD_PREFIX`` -* ```` - -A trailing ``.`` is added, if not provided. - .. _statsD: https://github.com/etsy/statsd From 528d62980614aa018bafcacc315585228bb9005b Mon Sep 17 00:00:00 2001 From: Igor Konforti Date: Mon, 19 Feb 2018 13:55:21 +0200 Subject: [PATCH 3/3] link to more config added --- docs/source/instrumentation.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/instrumentation.rst b/docs/source/instrumentation.rst index abb057f4..60cde416 100644 --- a/docs/source/instrumentation.rst +++ b/docs/source/instrumentation.rst @@ -30,6 +30,7 @@ all requests. The following metrics are generated: * ``gunicorn.log.warning``: rate of warning log messages * ``gunicorn.log.exception``: rate of exceptional log messages +See the statsd-host_ setting for more information. - +.. _statsd-host: settings.html#statsd-host .. _statsD: https://github.com/etsy/statsd