Skip to content

Commit

Permalink
Enable statsd logging in Superset (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedweber authored Feb 15, 2022
1 parent 59f5d86 commit 678291f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ ARG _BASE_IMAGE_TAG
FROM apache/superset:$_BASE_IMAGE_TAG
LABEL maintainer="Stackable GmbH"

RUN pip install statsd

COPY superset/stackable/superset_config.py /app/pythonpath/
2 changes: 2 additions & 0 deletions superset/stackable/superset_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
from superset.stats_logger import StatsdStatsLogger

SECRET_KEY = os.environ.get("SECRET_KEY")
SQLALCHEMY_DATABASE_URI = os.environ.get("SQLALCHEMY_DATABASE_URI")
STATS_LOGGER = StatsdStatsLogger(host='0.0.0.0', port=9125)

0 comments on commit 678291f

Please sign in to comment.