Setup newrelic for cloud.gov environments

This commit is contained in:
Ryan Ahearn
2023-01-18 09:20:22 -05:00
parent bfeb65c914
commit bec3c53128
8 changed files with 13 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ applications:
- type: worker
instances: ((worker_instances))
memory: ((worker_memory))
command: celery -A run_celery.notify_celery worker --loglevel=INFO --concurrency=4
command: newrelic-admin run-program celery -A run_celery.notify_celery worker --loglevel=INFO --concurrency=4
- type: scheduler
instances: 1
memory: ((scheduler_memory))
@@ -32,6 +32,8 @@ applications:
NOTIFY_APP_NAME: api
FLASK_APP: application.py
FLASK_ENV: production
NEW_RELIC_CONFIG_FILE: newrelic.ini
NEW_RELIC_ENVIRONMENT: ((env))
NOTIFY_ENVIRONMENT: ((env))
API_HOST_NAME: https://((public_api_route))