mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 10:42:41 -05:00
Added statsd integration into the API
- new client for statsd, follows conventions used elsewhere for configuration - client wraps underlying library so we can use a config property to send/not send statsd Added statsd metrics for: - count of API successful calls SMS/Email - count of successful task execution for SMS/Email - count of errors from Client libraries - timing of API calls to third party clients - timing of how long messages live on the SQS queue
This commit is contained in:
@@ -18,6 +18,10 @@ class Live(Config):
|
||||
TWILIO_AUTH_TOKEN = os.getenv('LIVE_TWILIO_AUTH_TOKEN')
|
||||
MMG_API_KEY = os.environ['LIVE_MMG_API_KEY']
|
||||
CSV_UPLOAD_BUCKET_NAME = 'live-notifications-csv-upload'
|
||||
STATSD_ENABLED = True
|
||||
STATSD_HOST = os.getenv('LIVE_STATSD_HOST')
|
||||
STATSD_PORT = os.getenv('LIVE_STATSD_PORT')
|
||||
STATSD_PREFIX = os.getenv('LIVE_STATSD_PREFIX')
|
||||
|
||||
BROKER_TRANSPORT_OPTIONS = {
|
||||
'region': 'eu-west-1',
|
||||
|
||||
Reference in New Issue
Block a user