REP-340: Use PaaS hosted stats exporter

- We are running the statsd exporter on PaaS now and we can route to it
  on apps.internal
- Send metrics there instead so they end up in Prometheus
This commit is contained in:
Andy Paine
2019-08-05 13:47:53 +01:00
parent 16da5d8243
commit 5242f67d97
2 changed files with 4 additions and 3 deletions

View File

@@ -21,6 +21,9 @@ class Config(object):
TEMPLATE_PREVIEW_API_KEY = os.environ.get('TEMPLATE_PREVIEW_API_KEY', 'my-secret-key')
# Hosted graphite statsd prefix
STATSD_ENABLED = False
STATSD_HOST = os.getenv('STATSD_HOST')
STATSD_PORT = 8125
STATSD_PREFIX = os.getenv('STATSD_PREFIX')
# Logging
@@ -65,9 +68,6 @@ class Config(object):
ACTIVITY_STATS_LIMIT_DAYS = 7
TEST_MESSAGE_FILENAME = 'Report'
STATSD_ENABLED = False
STATSD_HOST = "statsd.hostedgraphite.com"
STATSD_PORT = 8125
NOTIFY_ENVIRONMENT = 'development'
LOGO_UPLOAD_BUCKET_NAME = 'public-logos-local'
MOU_BUCKET_NAME = 'local-mou'