from os import getenv

GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb'

STATSD_HOST = 'graphite1.private.phx1.mozilla.com'
STATSD_PORT = 8125
STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV'))

COUNTRY_MIN_SHARE = 500

from os import getenv

GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb'

STATSD_HOST = getenv('STATSD_HOST', 'graphite1.private.phx1.mozilla.com')
STATSD_PORT = 8125
STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV'))

COUNTRY_MIN_SHARE = 500

Make statsd host configurable via env.
Make statsd host configurable via env.

  from os import getenv
  
  GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb'
  
- STATSD_HOST = 'graphite1.private.phx1.mozilla.com'
+ STATSD_HOST = getenv('STATSD_HOST', 'graphite1.private.phx1.mozilla.com')
  STATSD_PORT = 8125
  STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV'))
  
  COUNTRY_MIN_SHARE = 500
  
Make statsd host configurable via env.
## Code Before:
from os import getenv

GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb'

STATSD_HOST = 'graphite1.private.phx1.mozilla.com'
STATSD_PORT = 8125
STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV'))

COUNTRY_MIN_SHARE = 500

## Instruction:
Make statsd host configurable via env.
## Code After:
from os import getenv

GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb'

STATSD_HOST = getenv('STATSD_HOST', 'graphite1.private.phx1.mozilla.com')
STATSD_PORT = 8125
STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV'))

COUNTRY_MIN_SHARE = 500
