From ef81a2a011770eb6021e3be86f6b45004f0a1fcf Mon Sep 17 00:00:00 2001 From: Zach Margolis Date: Thu, 28 Sep 2017 13:06:57 -0400 Subject: [PATCH] Move newrelic.yml into source control **Why**: Easier to update locally --- .gitignore | 1 - config/application.yml.example | 6 ++++-- config/newrelic.yml | 23 +++++++++++++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 config/newrelic.yml diff --git a/.gitignore b/.gitignore index aebd7c9ecef..d0afbd804c8 100644 --- a/.gitignore +++ b/.gitignore @@ -36,7 +36,6 @@ Vagrantfile /certs/saml.crt /config/application.yml /config/aws.yml -/config/newrelic.yml /keys/saml.key.enc /keys/equifax_rsa /keys/equifax_rsa.pub diff --git a/config/application.yml.example b/config/application.yml.example index b7bc6fa4016..c8189a90ccd 100644 --- a/config/application.yml.example +++ b/config/application.yml.example @@ -88,6 +88,7 @@ development: logins_per_ip_period: '8' newrelic_browser_key: '' newrelic_browser_app_id: '' + newrelic_license_key: '' otp_delivery_blocklist_findtime: '5' otp_delivery_blocklist_maxretry: '10' otp_valid_for: '5' @@ -146,8 +147,9 @@ production: logins_per_ip_limit: '20' logins_per_ip_period: '8' mandrill_api_token: '' # Empty string to switch to SES - newrelic_browser_key: - newrelic_browser_app_id: + newrelic_browser_key: '' + newrelic_browser_app_id: '' + newrelic_license_key: '' otp_delivery_blocklist_findtime: '5' otp_delivery_blocklist_maxretry: '10' otp_valid_for: '5' diff --git a/config/newrelic.yml b/config/newrelic.yml new file mode 100644 index 00000000000..74ecd562d2f --- /dev/null +++ b/config/newrelic.yml @@ -0,0 +1,23 @@ +production: + agent_enabled: true + app_name: <%= LoginGov::Hostdata.env %>.<%= LoginGov::Hostdata.domain %> + audit_log: + enabled: false + browser_monitoring: + auto_instrument: false + capture_params: + developer_mode: + error_collector: + capture_source: true + enabled: true + ignore_errors: "ActionController::RoutingError,ActionController::BadRequest" + license_key: <%= Figaro.env.newrelic_license_key! %> + log_level: info + monitor_mode: true + transaction_tracer: + enabled: true + record_sql: obfuscated + stack_trace_threshold: 0.500 + transaction_threshold: apdex_f + proxy_host: + proxy_port: