Advertisement
Guest User

new_relic.ini

a guest
May 27th, 2016
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.33 KB | None | 0 0
  1. # ---------------------------------------------------------------------------
  2.  
  3. #
  4. # This file configures the New Relic Python Agent.
  5. #
  6. # The path to the configuration file should be supplied to the function
  7. # newrelic.agent.initialize() when the agent is being initialized.
  8. #
  9. # The configuration file follows a structure similar to what you would
  10. # find for Microsoft Windows INI files. For further information on the
  11. # configuration file format see the Python ConfigParser documentation at:
  12. #
  13. # http://docs.python.org/library/configparser.html
  14. #
  15. # For further discussion on the behaviour of the Python agent that can
  16. # be configured via this configuration file see:
  17. #
  18. # http://newrelic.com/docs/python/python-agent-configuration
  19. #
  20.  
  21. # ---------------------------------------------------------------------------
  22.  
  23. # Here are the settings that are common to all environments.
  24.  
  25. [newrelic]
  26.  
  27. # You must specify the license key associated with your New
  28. # Relic account. This key binds the Python Agent's data to your
  29. # account in the New Relic service.
  30. license_key = 759dd77a70a1b88a92e4d57e912132ada6c251f6
  31.  
  32. # The appplication name. Set this to be the name of your
  33. # application as you would like it to show up in New Relic UI.
  34. # The UI will then auto-map instances of your application into a
  35. # entry on your home dashboard page.
  36. app_name = Emites Sandbox
  37.  
  38. # When "true", the agent collects performance data about your
  39. # application and reports this data to the New Relic UI at
  40. # newrelic.com. This global switch is normally overridden for
  41. # each environment below.
  42. monitor_mode = true
  43.  
  44. # Sets the name of a file to log agent messages to. Useful for
  45. # debugging any issues with the agent. This is not set by
  46. # default as it is not known in advance what user your web
  47. # application processes will run as and where they have
  48. # permission to write to. Whatever you set this to you must
  49. # ensure that the permissions for the containing directory and
  50. # the file itself are correct, and that the user that your web
  51. # application runs as can write to the file. If not able to
  52. # write out a log file, it is also possible to say "stderr" and
  53. # output to standard error output. This would normally result in
  54. # output appearing in your web server log.
  55. # log_file = /tmp/newrelic-python-agent.log
  56.  
  57. # Sets the level of detail of messages sent to the log file, if
  58. # a log file location has been provided. Possible values, in
  59. # increasing order of detail, are: "critical", "error", "warning",
  60. # "info" and "debug". When reporting any agent issues to New
  61. # Relic technical support, the most useful setting for the
  62. # support engineers is "debug". However, this can generate a lot
  63. # of information very quickly, so it is best not to keep the
  64. # agent at this level for longer than it takes to reproduce the
  65. # problem you are experiencing.
  66. log_level = info
  67.  
  68. # The Python Agent communicates with the New Relic service using
  69. # SSL by default. Note that this does result in an increase in
  70. # CPU overhead, over and above what would occur for a non SSL
  71. # connection, to perform the encryption involved in the SSL
  72. # communication. This work is though done in a distinct thread
  73. # to those handling your web requests, so it should not impact
  74. # response times. You can if you wish revert to using a non SSL
  75. # connection, but this will result in information being sent
  76. # over a plain socket connection and will not be as secure.
  77. ssl = false
  78.  
  79. # The Python Agent will attempt to connect directly to the New
  80. # Relic service. If there is an intermediate firewall between
  81. # your host and the New Relic service that requires you to use a
  82. # HTTP proxy, then you should set both the "proxy_host" and
  83. # "proxy_port" settings to the required values for the HTTP
  84. # proxy. The "proxy_user" and "proxy_pass" settings should
  85. # additionally be set if proxy authentication is implemented by
  86. # the HTTP proxy. The "proxy_scheme" setting dictates what
  87. # protocol scheme is used in talking to the HTTP protocol. This
  88. # would normally always be set as "http" which will result in the
  89. # agent then using a SSL tunnel through the HTTP proxy for end to
  90. # end encryption.
  91. # proxy_scheme = http
  92. # proxy_host = hostname
  93. # proxy_port = 8080
  94. # proxy_user =
  95. # proxy_pass =
  96.  
  97. # Tells the transaction tracer and error collector (when
  98. # enabled) whether or not to capture the query string for the
  99. # URL and send it as the request parameters for display in the
  100. # UI. When "true", it is still possible to exclude specific
  101. # values from being captured using the "ignored_params" setting.
  102. capture_params = false
  103.  
  104. # Space separated list of variables that should be removed from
  105. # the query string captured for display as the request
  106. # parameters in the UI.
  107. ignored_params =
  108.  
  109. # The transaction tracer captures deep information about slow
  110. # transactions and sends this to the UI on a periodic basis. The
  111. # transaction tracer is enabled by default. Set this to "false"
  112. # to turn it off.
  113. transaction_tracer.enabled = true
  114.  
  115. # Threshold in seconds for when to collect a transaction trace.
  116. # When the response time of a controller action exceeds this
  117. # threshold, a transaction trace will be recorded and sent to
  118. # the UI. Valid values are any positive float value, or (default)
  119. # "apdex_f", which will use the threshold for a dissatisfying
  120. # Apdex controller action - four times the Apdex T value.
  121. transaction_tracer.transaction_threshold = apdex_f
  122.  
  123. # When the transaction tracer is on, SQL statements can
  124. # optionally be recorded. The recorder has three modes, "off"
  125. # which sends no SQL, "raw" which sends the SQL statement in its
  126. # original form, and "obfuscated", which strips out numeric and
  127. # string literals.
  128. transaction_tracer.record_sql = obfuscated
  129.  
  130. # Threshold in seconds for when to collect stack trace for a SQL
  131. # call. In other words, when SQL statements exceed this
  132. # threshold, then capture and send to the UI the current stack
  133. # trace. This is helpful for pinpointing where long SQL calls
  134. # originate from in an application.
  135. transaction_tracer.stack_trace_threshold = 0.5
  136.  
  137. # Determines whether the agent will capture query plans for slow
  138. # SQL queries. Only supported in MySQL and PostgreSQL. Set this
  139. # to "false" to turn it off.
  140. transaction_tracer.explain_enabled = true
  141.  
  142. # Threshold for query execution time below which query plans
  143. # will not not be captured. Relevant only when "explain_enabled"
  144. # is true.
  145. transaction_tracer.explain_threshold = 0.5
  146.  
  147. # Space separated list of function or method names in form
  148. # 'module:function' or 'module:class.function' for which
  149. # additional function timing instrumentation will be added.
  150. transaction_tracer.function_trace =
  151.  
  152. # The error collector captures information about uncaught
  153. # exceptions or logged exceptions and sends them to UI for
  154. # viewing. The error collector is enabled by default. Set this
  155. # to "false" to turn it off.
  156. error_collector.enabled = true
  157.  
  158. # To stop specific errors from reporting to the UI, set this to
  159. # a space separated list of the Python exception type names to
  160. # ignore. The exception name should be of the form 'module:class'.
  161. error_collector.ignore_errors =
  162.  
  163. # Browser monitoring is the Real User Monitoring feature of the UI.
  164. # For those Python web frameworks that are supported, this
  165. # setting enables the auto-insertion of the browser monitoring
  166. # JavaScript fragments.
  167. browser_monitoring.auto_instrument = true
  168.  
  169. # A thread profiling session can be scheduled via the UI when
  170. # this option is enabled. The thread profiler will periodically
  171. # capture a snapshot of the call stack for each active thread in
  172. # the application to construct a statistically representative
  173. # call tree.
  174. thread_profiler.enabled = true
  175.  
  176. # ---------------------------------------------------------------------------
  177.  
  178. #
  179. # The application environments. These are specific settings which
  180. # override the common environment settings. The settings related to a
  181. # specific environment will be used when the environment argument to the
  182. # newrelic.agent.initialize() function has been defined to be either
  183. # "development", "test", "staging" or "production".
  184. #
  185.  
  186. [newrelic:development]
  187. monitor_mode = false
  188.  
  189. [newrelic:test]
  190. monitor_mode = false
  191.  
  192. [newrelic:staging]
  193. app_name = Python Application (Staging)
  194. monitor_mode = true
  195.  
  196. [newrelic:production]
  197. monitor_mode = true
  198.  
  199. # ---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement