diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index b6ddd0acc2..ad0d8ff5e6 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -52,6 +52,7 @@ services: - INFLUXDB_REPORTING_DISABLED=true - INFLUXDB_HTTP_BIND_ADDRESS=influxdb:8086 - INFLUXDB_HTTP_LOG_ENABLED=false + - INFLUXDB_IML_STATS_LONG_DURATION grafana: image: "imlteam/grafana:6.2.0-dev" build: @@ -387,6 +388,7 @@ services: - BRANDING - USE_STRATAGEM - EXA_VERSION + - INFLUXDB_IML_STATS_LONG_DURATION deploy: restart_policy: condition: on-failure diff --git a/settings.py b/settings.py index 3c4d68c89b..fae5e48a40 100644 --- a/settings.py +++ b/settings.py @@ -58,7 +58,7 @@ INFLUXDB_IML_STATS_DB = "iml_stats" -INFLUXDB_IML_STATS_LONG_DURATION = "52w" +INFLUXDB_IML_STATS_LONG_DURATION = os.getenv("INFLUXDB_IML_STATS_LONG_DURATION", "52w") MAILBOX_PROXY_PASS = "http://{}:{}".format(PROXY_HOST, MAILBOX_PORT)