newrelic.yml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. # This file configures the New Relic Agent. New Relic monitors
  2. # Java applications with deep visibility and low overhead. For more details and additional
  3. # configuration options visit https://docs.newrelic.com/docs/java/java-agent-configuration.
  4. #
  5. # This configuration file is custom generated for Winston
  6. #
  7. # This section is for settings common to all environments.
  8. # Do not add anything above this next line.
  9. common: &default_settings
  10. # ============================== LICENSE KEY ===============================
  11. # You must specify the license key associated with your New Relic
  12. # account. For example, if your license key is 12345 use this:
  13. # license_key: '12345'
  14. # The key binds your Agent's data to your account in the New Relic service.
  15. license_key: '<LICENSE KEY>'
  16. # Agent Enabled
  17. # Use this setting to disable the agent instead of removing it from the startup command.
  18. # Default is true.
  19. agent_enabled: true
  20. # Set the name of your application as you'd like it show up in New Relic.
  21. # If enable_auto_app_naming is false, the agent reports all data to this application.
  22. # Otherwise, the agent reports only background tasks (transactions for non-web applications)
  23. # to this application. To report data to more than one application
  24. # (useful for rollup reporting), separate the application names with ";".
  25. # For example, to report data to "My Application" and "My Application 2" use this:
  26. # app_name: My Application;My Application 2
  27. # This setting is required. Up to 3 different application names can be specified.
  28. # The first application name must be unique.
  29. app_name: Git Bridge
  30. # To enable high security, set this property to true. When in high
  31. # security mode, the agent will use SSL and obfuscated SQL. Additionally,
  32. # request parameters and message parameters will not be sent to New Relic.
  33. high_security: false
  34. # Set to true to enable support for auto app naming.
  35. # The name of each web app is detected automatically
  36. # and the agent reports data separately for each one.
  37. # This provides a finer-grained performance breakdown for
  38. # web apps in New Relic.
  39. # Default is false.
  40. enable_auto_app_naming: false
  41. # Set to true to enable component-based transaction naming.
  42. # Set to false to use the URI of a web request as the name of the transaction.
  43. # Default is true.
  44. enable_auto_transaction_naming: true
  45. # The agent uses its own log file to keep its logging
  46. # separate from that of your application. Specify the log level here.
  47. # This setting is dynamic, so changes do not require restarting your application.
  48. # The levels in increasing order of verboseness are:
  49. # off, severe, warning, info, fine, finer, finest
  50. # Default is info.
  51. log_level: info
  52. # Log all data sent to and from New Relic in plain text.
  53. # This setting is dynamic, so changes do not require restarting your application.
  54. # Default is false.
  55. audit_mode: false
  56. # The number of backup log files to save.
  57. # Default is 1.
  58. log_file_count: 1
  59. # The maximum number of kbytes to write to any one log file.
  60. # The log_file_count must be set greater than 1.
  61. # Default is 0 (no limit).
  62. log_limit_in_kbytes: 0
  63. # Override other log rolling configuration and roll the logs daily.
  64. # Default is false.
  65. log_daily: false
  66. # The name of the log file.
  67. # Default is newrelic_agent.log.
  68. log_file_name: newrelic_agent.log
  69. # The log file directory.
  70. # Default is the logs directory in the newrelic.jar parent directory.
  71. #log_file_path:
  72. # The agent communicates with New Relic via https by
  73. # default. If you want to communicate with newrelic via http,
  74. # then turn off SSL by setting this value to false.
  75. # This work is done asynchronously to the threads that process your
  76. # application code, so response times will not be directly affected
  77. # by this change.
  78. # Default is true.
  79. ssl: true
  80. # Proxy settings for connecting to the New Relic server:
  81. # If a proxy is used, the host setting is required. Other settings
  82. # are optional. Default port is 8080. The username and password
  83. # settings will be used to authenticate to Basic Auth challenges
  84. # from a proxy server.
  85. #proxy_host: hostname
  86. #proxy_port: 8080
  87. #proxy_user: username
  88. #proxy_password: password
  89. # Limits the number of lines to capture for each stack trace.
  90. # Default is 30
  91. max_stack_trace_lines: 30
  92. # Provides the ability to configure the attributes sent to New Relic. These
  93. # attributes can be found in transaction traces, traced errors, Insight's
  94. # transaction events, and Insight's page views.
  95. attributes:
  96. # When true, attributes will be sent to New Relic. The default is true.
  97. enabled: true
  98. #A comma separated list of attribute keys whose values should
  99. # be sent to New Relic.
  100. #include:
  101. # A comma separated list of attribute keys whose values should
  102. # not be sent to New Relic.
  103. #exclude:
  104. # Transaction tracer captures deep information about slow
  105. # transactions and sends this to the New Relic service once a
  106. # minute. Included in the transaction is the exact call sequence of
  107. # the transactions including any SQL statements issued.
  108. transaction_tracer:
  109. # Transaction tracer is enabled by default. Set this to false to turn it off.
  110. # This feature is not available to Lite accounts and is automatically disabled.
  111. # Default is true.
  112. enabled: true
  113. # Threshold in seconds for when to collect a transaction
  114. # trace. When the response time of a controller action exceeds
  115. # this threshold, a transaction trace will be recorded and sent to
  116. # New Relic. Valid values are any float value, or (default) "apdex_f",
  117. # which will use the threshold for the "Frustrated" Apdex level
  118. # (greater than four times the apdex_t value).
  119. # Default is apdex_f.
  120. transaction_threshold: apdex_f
  121. # When transaction tracer is on, SQL statements can optionally be
  122. # recorded. The recorder has three modes, "off" which sends no
  123. # SQL, "raw" which sends the SQL statement in its original form,
  124. # and "obfuscated", which strips out numeric and string literals.
  125. # Default is obfuscated.
  126. record_sql: obfuscated
  127. # Set this to true to log SQL statements instead of recording them.
  128. # SQL is logged using the record_sql mode.
  129. # Default is false.
  130. log_sql: false
  131. # Threshold in seconds for when to collect stack trace for a SQL
  132. # call. In other words, when SQL statements exceed this threshold,
  133. # then capture and send to New Relic the current stack trace. This is
  134. # helpful for pinpointing where long SQL calls originate from.
  135. # Default is 0.5 seconds.
  136. stack_trace_threshold: 0.5
  137. # Determines whether the agent will capture query plans for slow
  138. # SQL queries. Only supported for MySQL and PostgreSQL.
  139. # Default is true.
  140. explain_enabled: true
  141. # Threshold for query execution time below which query plans will not
  142. # not be captured. Relevant only when `explain_enabled` is true.
  143. # Default is 0.5 seconds.
  144. explain_threshold: 0.5
  145. # Use this setting to control the variety of transaction traces.
  146. # The higher the setting, the greater the variety.
  147. # Set this to 0 to always report the slowest transaction trace.
  148. # Default is 20.
  149. top_n: 20
  150. # Error collector captures information about uncaught exceptions and
  151. # sends them to New Relic for viewing.
  152. error_collector:
  153. # This property enables the collection of errors. If the property is not
  154. # set or the property is set to false, then errors will not be collected.
  155. # Default is true.
  156. enabled: true
  157. # Use this property to exclude specific exceptions from being reported as errors
  158. # by providing a comma separated list of full class names.
  159. # The default is to exclude akka.actor.ActorKilledException. If you want to override
  160. # this, you must provide any new value as an empty list is ignored.
  161. ignore_errors: akka.actor.ActorKilledException
  162. # Use this property to exclude specific http status codes from being reported as errors
  163. # by providing a comma separated list of status codes.
  164. # The default is to exclude 404s. If you want to override
  165. # this, you must provide any new value as an empty list is ignored.
  166. ignore_status_codes: 404
  167. # Transaction Events are used for Histograms and Percentiles. Unaggregated data is collected
  168. # for each web transaction and sent to the server on harvest.
  169. transaction_events:
  170. # Set to false to disable transaction events.
  171. # Default is true.
  172. enabled: true
  173. # Events are collected up to the configured amount. Afterwards, events are sampled to
  174. # maintain an even distribution across the harvest cycle.
  175. # Default is 2000. Setting to 0 will disable.
  176. max_samples_stored: 2000
  177. # Cross Application Tracing adds request and response headers to
  178. # external calls using supported HTTP libraries to provide better
  179. # performance data when calling applications monitored by other New Relic Agents.
  180. cross_application_tracer:
  181. # Set to false to disable cross application tracing.
  182. # Default is true.
  183. enabled: true
  184. # Thread profiler measures wall clock time, CPU time, and method call counts
  185. # in your application's threads as they run.
  186. # This feature is not available to Lite accounts and is automatically disabled.
  187. thread_profiler:
  188. # Set to false to disable the thread profiler.
  189. # Default is true.
  190. enabled: true
  191. # New Relic Real User Monitoring gives you insight into the performance real users are
  192. # experiencing with your website. This is accomplished by measuring the time it takes for
  193. # your users' browsers to download and render your web pages by injecting a small amount
  194. # of JavaScript code into the header and footer of each page.
  195. browser_monitoring:
  196. # By default the agent automatically inserts API calls in compiled JSPs to
  197. # inject the monitoring JavaScript into web pages. Not all rendering engines are supported.
  198. # See https://docs.newrelic.com/docs/java/real-user-monitoring-in-java#manual_instrumentation
  199. # for instructions to add these manually to your pages.
  200. # Set this attribute to false to turn off this behavior.
  201. auto_instrument: true
  202. class_transformer:
  203. # This instrumentation reports the name of the user principal returned from
  204. # HttpServletRequest.getUserPrincipal() when servlets and filters are invoked.
  205. com.newrelic.instrumentation.servlet-user:
  206. enabled: false
  207. com.newrelic.instrumentation.spring-aop-2:
  208. enabled: false
  209. # Classes loaded by classloaders in this list will not be instrumented.
  210. # This is a useful optimization for runtimes which use classloaders to
  211. # load dynamic classes which the agent would not instrument.
  212. classloader_excludes:
  213. groovy.lang.GroovyClassLoader$InnerLoader,
  214. org.codehaus.groovy.runtime.callsite.CallSiteClassLoader,
  215. com.collaxa.cube.engine.deployment.BPELClassLoader,
  216. org.springframework.data.convert.ClassGeneratingEntityInstantiator$ObjectInstantiatorClassGenerator,
  217. org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer$ContextClassLoader,
  218. gw.internal.gosu.compiler.SingleServingGosuClassLoader,
  219. # User-configurable custom labels for this agent. Labels are name-value pairs.
  220. # There is a maximum of 64 labels per agent. Names and values are limited to 255 characters.
  221. # Names and values may not contain colons (:) or semicolons (;).
  222. labels:
  223. # An example label
  224. #label_name: label_value
  225. # Application Environments
  226. # ------------------------------------------
  227. # Environment specific settings are in this section.
  228. # You can use the environment to override the default settings.
  229. # For example, to change the app_name setting.
  230. # Use -Dnewrelic.environment=<environment> on the Java startup command line
  231. # to set the environment.
  232. # The default environment is production.
  233. # NOTE if your application has other named environments, you should
  234. # provide configuration settings for these environments here.
  235. development:
  236. <<: *default_settings
  237. app_name: Git Bridge (Development)
  238. test:
  239. <<: *default_settings
  240. app_name: Git Bridge (Test)
  241. production:
  242. <<: *default_settings
  243. staging:
  244. <<: *default_settings
  245. app_name: Git Bridge (Staging)