superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [docs] add StatsD setup instructions (#3813)
Date Sat, 11 Nov 2017 01:54:58 GMT
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 <maximebeauchemin@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" <commits@superset.apache.org>'].

Mime
View raw message