#
# This file configures the New Relic Agent.  New Relic monitors Ruby, Java,
# .NET, PHP, Python, Node, and Go applications with deep visibility and low
# overhead.  For more information, visit www.newrelic.com.
#
# Generated May 11, 2018
#
# This configuration file is custom generated for MoJDS
#
# For full documentation of agent configuration options, please refer to
# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration

common: &default_settings
  license_key: <%= ENV['NEWRELIC_LICENSE_KEY'] %>
  app_name: CCCD

  # To disable the agent regardless of other settings, uncomment the following:
  # agent_enabled: false

  # Logging level for log/newrelic_agent.log
  log_level: info

# Environment-specific settings are in this section.
# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment.
# If your application has other named environments, configure them here.
development:
  <<: *default_settings
  app_name: CCCD (Development)
  log_level: debug
  monitor_mode: false

test:
  <<: *default_settings
  app_name: CCCD (Test)
  # It doesn't make sense to report to New Relic from automated test runs.
  monitor_mode: false

production:
  <<: *default_settings
  app_name: <%= "CCCD (#{ENV['ENV']})" %>

#
# This file configures the New Relic Agent.  New Relic monitors Ruby, Java,
# .NET, PHP, Python, Node, and Go applications with deep visibility and low
# overhead.  For more information, visit www.newrelic.com.
#
# Generated May 11, 2018
#
# This configuration file is custom generated for MoJDS
#
# For full documentation of agent configuration options, please refer to
# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration

common: &default_settings
  license_key: <%= ENV['NEWRELIC_LICENSE_KEY'] %>
  app_name: CCCD

  # To disable the agent regardless of other settings, uncomment the following:
  # agent_enabled: false

  # Logging level for log/newrelic_agent.log
  log_level: info

# Environment-specific settings are in this section.
# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment.
# If your application has other named environments, configure them here.
development:
  <<: *default_settings
  app_name: CCCD (Development)
  log_level: debug
  monitor_mode: false

test:
  <<: *default_settings
  app_name: CCCD (Test)
  # It doesn't make sense to report to New Relic from automated test runs.
  monitor_mode: false

production:
  <<: *default_settings
  app_name: <%= "CCCD (#{ENV['ENV']})" %>
  monitor_mode: <%= ENV['ENV'] == 'gamma' %>

Disable NewRelic monitor for non-prod environments
Disable NewRelic monitor for non-prod environments

Now that production officially started report to NewRelic the non-prod
environments are not required to report anymore (were mainly for testing
reasons) and it does help keep prices cost to a low.
