newrelic.yml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. # This file configures the New Relic Agent. New Relic monitors
  2. # Ruby, Java, .NET, PHP, and Python applications with deep visibility and low overhead.
  3. # For more information, visit www.newrelic.com.
  4. # Here are the settings that are common to all environments
  5. common: &default_settings
  6. # ============================== LICENSE KEY ===============================
  7. # You must specify the license key associated with your New Relic
  8. # account. This key binds your Agent's data to your account in the
  9. # New Relic service.
  10. license_key: '<%= ENV["NEW_RELIC_LICENSE_KEY"] %>'
  11. # Agent Enabled (Ruby/Rails Only)
  12. # Use this setting to force the agent to run or not run.
  13. # Default is 'auto' which means the agent will install and run only
  14. # if a valid dispatcher such as Mongrel is running. This prevents
  15. # it from running with Rake or the console. Set to false to
  16. # completely turn the agent off regardless of the other settings.
  17. # Valid values are true, false and auto.
  18. #
  19. # agent_enabled: auto
  20. # Application Name Set this to be the name of your application as
  21. # you'd like it show up in New Relic. The service will then auto-map
  22. # instances of your application into an "application" on your
  23. # dashboard page. If you want to map this instance into multiple
  24. # apps, like "AJAX Requests" and "All UI" then specify a semicolon
  25. # separated list of up to three distinct names, or a yaml list.
  26. # Defaults to the capitalized RAILS_ENV or RACK_ENV (i.e.,
  27. # Production, Staging, etc)
  28. #
  29. # Example:
  30. #
  31. # app_name:
  32. # - Ajax Service
  33. # - All Services
  34. #
  35. app_name: '<%= ENV["NEW_RELIC_APP_NAME"] %>'
  36. # When "true", the agent collects performance data about your
  37. # application and reports this data to the New Relic service at
  38. # newrelic.com. This global switch is normally overridden for each
  39. # environment below. (formerly called 'enabled')
  40. monitor_mode: true
  41. # Developer mode should be off in every environment but
  42. # development as it has very high overhead in memory.
  43. developer_mode: false
  44. # The newrelic agent generates its own log file to keep its logging
  45. # information separate from that of your application. Specify its
  46. # log level here.
  47. log_level: info
  48. # Optionally set the path to the log file This is expanded from the
  49. # root directory (may be relative or absolute, e.g. 'log/' or
  50. # '/var/log/') The agent will attempt to create this directory if it
  51. # does not exist.
  52. # log_file_path: 'log'
  53. # Optionally set the name of the log file, defaults to 'newrelic_agent.log'
  54. # log_file_name: 'newrelic_agent.log'
  55. # The newrelic agent communicates with the service via https by default. This
  56. # prevents eavesdropping on the performance metrics transmitted by the agent.
  57. # The encryption required by SSL introduces a nominal amount of CPU overhead,
  58. # which is performed asynchronously in a background thread. If you'd prefer
  59. # to send your metrics over http uncomment the following line.
  60. # ssl: false
  61. #============================== Browser Monitoring ===============================
  62. # New Relic Real User Monitoring gives you insight into the performance real users are
  63. # experiencing with your website. This is accomplished by measuring the time it takes for
  64. # your users' browsers to download and render your web pages by injecting a small amount
  65. # of JavaScript code into the header and footer of each page.
  66. browser_monitoring:
  67. # By default the agent automatically injects the monitoring JavaScript
  68. # into web pages. Set this attribute to false to turn off this behavior.
  69. auto_instrument: false
  70. # Proxy settings for connecting to the New Relic server.
  71. #
  72. # If a proxy is used, the host setting is required. Other settings
  73. # are optional. Default port is 8080.
  74. #
  75. # proxy_host: hostname
  76. # proxy_port: 8080
  77. # proxy_user:
  78. # proxy_pass:
  79. # The agent can optionally log all data it sends to New Relic servers to a
  80. # separate log file for human inspection and auditing purposes. To enable this
  81. # feature, change 'enabled' below to true.
  82. # See: https://newrelic.com/docs/ruby/audit-log
  83. audit_log:
  84. enabled: false
  85. # Tells transaction tracer and error collector (when enabled)
  86. # whether or not to capture HTTP params. When true, frameworks can
  87. # exclude HTTP parameters from being captured.
  88. # Rails: the RoR filter_parameter_logging excludes parameters
  89. # Java: create a config setting called "ignored_params" and set it to
  90. # a comma separated list of HTTP parameter names.
  91. # ex: ignored_params: credit_card, ssn, password
  92. capture_params: false
  93. # Transaction tracer captures deep information about slow
  94. # transactions and sends this to the New Relic service once a
  95. # minute. Included in the transaction is the exact call sequence of
  96. # the transactions including any SQL statements issued.
  97. transaction_tracer:
  98. # Transaction tracer is enabled by default. Set this to false to
  99. # turn it off. This feature is only available at the Professional
  100. # and above product levels.
  101. enabled: false
  102. # Threshold in seconds for when to collect a transaction
  103. # trace. When the response time of a controller action exceeds
  104. # this threshold, a transaction trace will be recorded and sent to
  105. # New Relic. Valid values are any float value, or (default) "apdex_f",
  106. # which will use the threshold for an dissatisfying Apdex
  107. # controller action - four times the Apdex T value.
  108. transaction_threshold: apdex_f
  109. # When transaction tracer is on, SQL statements can optionally be
  110. # recorded. The recorder has three modes, "off" which sends no
  111. # SQL, "raw" which sends the SQL statement in its original form,
  112. # and "obfuscated", which strips out numeric and string literals.
  113. record_sql: obfuscated
  114. # Threshold in seconds for when to collect stack trace for a SQL
  115. # call. In other words, when SQL statements exceed this threshold,
  116. # then capture and send to New Relic the current stack trace. This is
  117. # helpful for pinpointing where long SQL calls originate from.
  118. stack_trace_threshold: 0.500
  119. # Determines whether the agent will capture query plans for slow
  120. # SQL queries. Only supported in mysql and postgres. Should be
  121. # set to false when using other adapters.
  122. # explain_enabled: true
  123. # Threshold for query execution time below which query plans will
  124. # not be captured. Relevant only when `explain_enabled` is true.
  125. # explain_threshold: 0.5
  126. # Error collector captures information about uncaught exceptions and
  127. # sends them to New Relic for viewing
  128. error_collector:
  129. # Error collector is enabled by default. Set this to false to turn
  130. # it off. This feature is only available at the Professional and above
  131. # product levels.
  132. enabled: true
  133. # Rails Only - tells error collector whether or not to capture a
  134. # source snippet around the place of the error when errors are View
  135. # related.
  136. capture_source: true
  137. # To stop specific errors from reporting to New Relic, set this property
  138. # to comma-separated values. Default is to ignore routing errors,
  139. # which are how 404's get triggered.
  140. ignore_errors: "ActionController::RoutingError,Sinatra::NotFound"
  141. # If you're interested in capturing memcache keys as though they
  142. # were SQL uncomment this flag. Note that this does increase
  143. # overhead slightly on every memcached call, and can have security
  144. # implications if your memcached keys are sensitive
  145. # capture_memcache_keys: true
  146. # Application Environments
  147. # ------------------------------------------
  148. # Environment-specific settings are in this section.
  149. # For Rails applications, RAILS_ENV is used to determine the environment.
  150. # For Java applications, pass -Dnewrelic.environment <environment> to set
  151. # the environment.
  152. # NOTE if your application has other named environments, you should
  153. # provide newrelic configuration settings for these environments here.
  154. development:
  155. <<: *default_settings
  156. # Turn off communication to New Relic service in development mode (also
  157. # 'enabled').
  158. # NOTE: for initial evaluation purposes, you may want to temporarily
  159. # turn the agent on in development mode.
  160. monitor_mode: false
  161. # Rails Only - when running in Developer Mode, the New Relic Agent will
  162. # present performance information on the last 100 transactions you have
  163. # executed since starting the mongrel.
  164. # NOTE: There is substantial overhead when running in developer mode.
  165. # Do not use for production or load testing.
  166. developer_mode: true
  167. # Enable textmate links
  168. # textmate: true
  169. test:
  170. <<: *default_settings
  171. # It almost never makes sense to turn on the agent when running
  172. # unit, functional or integration tests or the like.
  173. monitor_mode: false
  174. # Turn on the agent in production for 24x7 monitoring. NewRelic
  175. # testing shows an average performance impact of < 5 ms per
  176. # transaction, you can leave this on all the time without
  177. # incurring any user-visible performance degradation.
  178. production:
  179. <<: *default_settings
  180. monitor_mode: true
  181. # Many applications have a staging environment which behaves
  182. # identically to production. Support for that environment is provided
  183. # here. By default, the staging environment has the agent turned on.
  184. staging:
  185. <<: *default_settings
  186. monitor_mode: true
  187. # app_name: My Application (Staging)