From 7f1756955f4c020d4a44be4ec04659209a41684b Mon Sep 17 00:00:00 2001 From: Michael Pankov Date: Sat, 4 Jul 2020 16:42:56 +0300 Subject: [PATCH] Allow for influx retention time to be tunable (#2046) Signed-off-by: Michael Pankov --- docker/docker-compose.yml | 2 ++ settings.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)