You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2017/11/11 01:54:58 UTC

[incubator-superset] branch master updated: [docs] add StatsD setup instructions (#3813)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 83e6807  [docs] add StatsD setup instructions (#3813)
83e6807 is described below

commit 83e6807fa01c15d545244493920fb63a74a941f0
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Fri Nov 10 17:54:56 2017 -0800

    [docs] add StatsD setup instructions (#3813)
---
 docs/installation.rst | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/docs/installation.rst b/docs/installation.rst
index 823600b..3d043b8 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -550,3 +550,20 @@ same server.
         return "Ok"
 
     BLUEPRINTS = [simple_page]
+
+StatsD logging
+--------------
+
+Superset is instrumented to log events to StatsD if desired. Most endpoints hit
+are logged as well as key events like query start and end in SQL Lab.
+
+To setup StatsD logging, it's a matter of configuring the logger in your
+``superset_config.py``.
+
+..code ::
+
+    from superset.stats_logger import StatsdStatsLogger
+    STATS_LOGGER = StatsdStatsLogger(host='localhost', port=8125, prefix='superset')
+
+Note that it's also possible to implement you own logger by deriving
+``superset.stats_logger.BaseStatsLogger``.

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <co...@superset.apache.org>'].