factorylabs-newrelic_rpm 2.10.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. data/CHANGELOG +354 -0
  2. data/LICENSE +37 -0
  3. data/README-2.10.2.2 +10 -0
  4. data/README.md +138 -0
  5. data/bin/mongrel_rpm +33 -0
  6. data/bin/newrelic_cmd +4 -0
  7. data/cert/cacert.pem +34 -0
  8. data/install.rb +45 -0
  9. data/lib/new_relic/agent.rb +315 -0
  10. data/lib/new_relic/agent/agent.rb +647 -0
  11. data/lib/new_relic/agent/busy_calculator.rb +86 -0
  12. data/lib/new_relic/agent/chained_call.rb +13 -0
  13. data/lib/new_relic/agent/collection_helper.rb +66 -0
  14. data/lib/new_relic/agent/error_collector.rb +117 -0
  15. data/lib/new_relic/agent/instrumentation/active_merchant.rb +18 -0
  16. data/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb +91 -0
  17. data/lib/new_relic/agent/instrumentation/authlogic.rb +8 -0
  18. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +389 -0
  19. data/lib/new_relic/agent/instrumentation/data_mapper.rb +90 -0
  20. data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +12 -0
  21. data/lib/new_relic/agent/instrumentation/memcache.rb +24 -0
  22. data/lib/new_relic/agent/instrumentation/merb/controller.rb +26 -0
  23. data/lib/new_relic/agent/instrumentation/merb/errors.rb +8 -0
  24. data/lib/new_relic/agent/instrumentation/metric_frame.rb +199 -0
  25. data/lib/new_relic/agent/instrumentation/net.rb +21 -0
  26. data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +20 -0
  27. data/lib/new_relic/agent/instrumentation/rack.rb +109 -0
  28. data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +59 -0
  29. data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +27 -0
  30. data/lib/new_relic/agent/instrumentation/rails/errors.rb +24 -0
  31. data/lib/new_relic/agent/instrumentation/sinatra.rb +39 -0
  32. data/lib/new_relic/agent/method_tracer.rb +348 -0
  33. data/lib/new_relic/agent/patch_const_missing.rb +125 -0
  34. data/lib/new_relic/agent/sampler.rb +46 -0
  35. data/lib/new_relic/agent/samplers/cpu_sampler.rb +50 -0
  36. data/lib/new_relic/agent/samplers/memory_sampler.rb +141 -0
  37. data/lib/new_relic/agent/samplers/mongrel_sampler.rb +23 -0
  38. data/lib/new_relic/agent/samplers/object_sampler.rb +24 -0
  39. data/lib/new_relic/agent/shim_agent.rb +21 -0
  40. data/lib/new_relic/agent/stats_engine.rb +22 -0
  41. data/lib/new_relic/agent/stats_engine/metric_stats.rb +116 -0
  42. data/lib/new_relic/agent/stats_engine/samplers.rb +74 -0
  43. data/lib/new_relic/agent/stats_engine/transactions.rb +154 -0
  44. data/lib/new_relic/agent/transaction_sampler.rb +315 -0
  45. data/lib/new_relic/agent/worker_loop.rb +118 -0
  46. data/lib/new_relic/commands/deployments.rb +145 -0
  47. data/lib/new_relic/commands/new_relic_commands.rb +30 -0
  48. data/lib/new_relic/control.rb +484 -0
  49. data/lib/new_relic/control/external.rb +13 -0
  50. data/lib/new_relic/control/merb.rb +24 -0
  51. data/lib/new_relic/control/rails.rb +151 -0
  52. data/lib/new_relic/control/ruby.rb +36 -0
  53. data/lib/new_relic/control/sinatra.rb +14 -0
  54. data/lib/new_relic/histogram.rb +89 -0
  55. data/lib/new_relic/local_environment.rb +299 -0
  56. data/lib/new_relic/merbtasks.rb +6 -0
  57. data/lib/new_relic/metric_data.rb +42 -0
  58. data/lib/new_relic/metric_parser.rb +124 -0
  59. data/lib/new_relic/metric_parser/action_mailer.rb +9 -0
  60. data/lib/new_relic/metric_parser/active_merchant.rb +26 -0
  61. data/lib/new_relic/metric_parser/active_record.rb +25 -0
  62. data/lib/new_relic/metric_parser/controller.rb +54 -0
  63. data/lib/new_relic/metric_parser/controller_cpu.rb +38 -0
  64. data/lib/new_relic/metric_parser/errors.rb +6 -0
  65. data/lib/new_relic/metric_parser/external.rb +50 -0
  66. data/lib/new_relic/metric_parser/mem_cache.rb +12 -0
  67. data/lib/new_relic/metric_parser/other_transaction.rb +15 -0
  68. data/lib/new_relic/metric_parser/view.rb +61 -0
  69. data/lib/new_relic/metric_parser/web_frontend.rb +14 -0
  70. data/lib/new_relic/metric_parser/web_service.rb +9 -0
  71. data/lib/new_relic/metric_spec.rb +67 -0
  72. data/lib/new_relic/metrics.rb +7 -0
  73. data/lib/new_relic/noticed_error.rb +23 -0
  74. data/lib/new_relic/rack/metric_app.rb +56 -0
  75. data/lib/new_relic/rack/mongrel_rpm.ru +25 -0
  76. data/lib/new_relic/rack/newrelic.yml +26 -0
  77. data/lib/new_relic/rack_app.rb +5 -0
  78. data/lib/new_relic/recipes.rb +82 -0
  79. data/lib/new_relic/stats.rb +362 -0
  80. data/lib/new_relic/transaction_analysis.rb +121 -0
  81. data/lib/new_relic/transaction_sample.rb +671 -0
  82. data/lib/new_relic/version.rb +54 -0
  83. data/lib/new_relic_api.rb +276 -0
  84. data/lib/newrelic_rpm.rb +45 -0
  85. data/lib/tasks/all.rb +4 -0
  86. data/lib/tasks/install.rake +7 -0
  87. data/lib/tasks/tests.rake +15 -0
  88. data/newrelic.yml +227 -0
  89. data/newrelic_rpm.gemspec +214 -0
  90. data/recipes/newrelic.rb +6 -0
  91. data/test/active_record_fixtures.rb +55 -0
  92. data/test/config/newrelic.yml +46 -0
  93. data/test/config/test_control.rb +38 -0
  94. data/test/new_relic/agent/active_record_instrumentation_test.rb +268 -0
  95. data/test/new_relic/agent/agent_controller_test.rb +254 -0
  96. data/test/new_relic/agent/agent_test_controller.rb +78 -0
  97. data/test/new_relic/agent/busy_calculator_test.rb +79 -0
  98. data/test/new_relic/agent/classloader_patch_test.rb +56 -0
  99. data/test/new_relic/agent/collection_helper_test.rb +125 -0
  100. data/test/new_relic/agent/error_collector_test.rb +173 -0
  101. data/test/new_relic/agent/method_tracer_test.rb +340 -0
  102. data/test/new_relic/agent/metric_data_test.rb +56 -0
  103. data/test/new_relic/agent/mock_ar_connection.rb +40 -0
  104. data/test/new_relic/agent/mock_scope_listener.rb +23 -0
  105. data/test/new_relic/agent/net_instrumentation_test.rb +63 -0
  106. data/test/new_relic/agent/rpm_agent_test.rb +125 -0
  107. data/test/new_relic/agent/stats_engine/metric_stats_test.rb +79 -0
  108. data/test/new_relic/agent/stats_engine/samplers_test.rb +88 -0
  109. data/test/new_relic/agent/stats_engine/stats_engine_test.rb +184 -0
  110. data/test/new_relic/agent/task_instrumentation_test.rb +177 -0
  111. data/test/new_relic/agent/testable_agent.rb +13 -0
  112. data/test/new_relic/agent/transaction_sample_builder_test.rb +195 -0
  113. data/test/new_relic/agent/transaction_sample_test.rb +186 -0
  114. data/test/new_relic/agent/transaction_sampler_test.rb +404 -0
  115. data/test/new_relic/agent/worker_loop_test.rb +103 -0
  116. data/test/new_relic/control_test.rb +110 -0
  117. data/test/new_relic/delayed_job_test.rb +108 -0
  118. data/test/new_relic/deployments_api_test.rb +68 -0
  119. data/test/new_relic/environment_test.rb +75 -0
  120. data/test/new_relic/metric_parser_test.rb +172 -0
  121. data/test/new_relic/metric_spec_test.rb +177 -0
  122. data/test/new_relic/shim_agent_test.rb +9 -0
  123. data/test/new_relic/stats_test.rb +291 -0
  124. data/test/new_relic/version_number_test.rb +76 -0
  125. data/test/test_helper.rb +53 -0
  126. data/test/ui/newrelic_controller_test.rb +14 -0
  127. data/test/ui/newrelic_helper_test.rb +53 -0
  128. data/ui/controllers/newrelic_controller.rb +220 -0
  129. data/ui/helpers/google_pie_chart.rb +49 -0
  130. data/ui/helpers/newrelic_helper.rb +320 -0
  131. data/ui/views/layouts/newrelic_default.rhtml +47 -0
  132. data/ui/views/newrelic/_explain_plans.rhtml +27 -0
  133. data/ui/views/newrelic/_sample.rhtml +19 -0
  134. data/ui/views/newrelic/_segment.rhtml +28 -0
  135. data/ui/views/newrelic/_segment_limit_message.rhtml +1 -0
  136. data/ui/views/newrelic/_segment_row.rhtml +14 -0
  137. data/ui/views/newrelic/_show_sample_detail.rhtml +24 -0
  138. data/ui/views/newrelic/_show_sample_sql.rhtml +20 -0
  139. data/ui/views/newrelic/_show_sample_summary.rhtml +3 -0
  140. data/ui/views/newrelic/_sql_row.rhtml +11 -0
  141. data/ui/views/newrelic/_stack_trace.rhtml +30 -0
  142. data/ui/views/newrelic/_table.rhtml +12 -0
  143. data/ui/views/newrelic/explain_sql.rhtml +42 -0
  144. data/ui/views/newrelic/images/arrow-close.png +0 -0
  145. data/ui/views/newrelic/images/arrow-open.png +0 -0
  146. data/ui/views/newrelic/images/blue_bar.gif +0 -0
  147. data/ui/views/newrelic/images/file_icon.png +0 -0
  148. data/ui/views/newrelic/images/gray_bar.gif +0 -0
  149. data/ui/views/newrelic/images/new-relic-rpm-desktop.gif +0 -0
  150. data/ui/views/newrelic/images/new_relic_rpm_desktop.gif +0 -0
  151. data/ui/views/newrelic/images/textmate.png +0 -0
  152. data/ui/views/newrelic/index.rhtml +57 -0
  153. data/ui/views/newrelic/javascript/prototype-scriptaculous.js +7288 -0
  154. data/ui/views/newrelic/javascript/transaction_sample.js +107 -0
  155. data/ui/views/newrelic/sample_not_found.rhtml +2 -0
  156. data/ui/views/newrelic/show_sample.rhtml +80 -0
  157. data/ui/views/newrelic/show_source.rhtml +3 -0
  158. data/ui/views/newrelic/stylesheets/style.css +484 -0
  159. data/ui/views/newrelic/threads.rhtml +52 -0
  160. metadata +238 -0
@@ -0,0 +1,354 @@
1
+ v2.10.2.2.
2
+ * extract contributed instrumentation into new contrib gem: http://github.com/newrelic/rpm_contrib
3
+ * expanded support for queue length and queue time
4
+ * remove calls to starts_with to fix Sinatra and non-rails deployments
5
+ * fix problem with apdex recording
6
+ * switch to jeweler for gem building
7
+ * minor fixes, test improvements, doc and rakefile improvements
8
+ v2.10.2.1.
9
+ * fix bugs with Sinatra app instrumentation
10
+ * minor doc updates
11
+ v2.10.2.0.
12
+ * beta release of 2.10
13
+ v2.10.1.
14
+ * rack support, including metal; ignores 404s; requires a module inclusion (see docs)
15
+ * sinatra support, displays actions named by the URI pattern matched
16
+ * add API method to abort transaction recording for in-flight transactions
17
+ * remove account management calls from newrelic_api.rb
18
+ * truncating extremely large transaction traces for efficiency
19
+ * fix error reporting in recipes; add newrelic_rails_env option to recipes to
20
+ override the rails env used to pull the app_name out of newrelic.yml
21
+ * added TorqueBox recognition (thanks Bob McWhirter)
22
+ * renamed config settings: enabled => monitor_mode; developer => developer_mode;
23
+ old names will still work in newrelic.yml
24
+ * instrumentation for DelayedJob (thanks Travis Tilley)
25
+ * added config switches to turn off certain instrumentation when you aren't
26
+ interested in the metrics, to save on overhead--see newrelic.yml for details.
27
+ * add profiling support to dev mode; very experimental!
28
+ * add 'multi_threaded' config option to indicate when the app is running
29
+ multi-threaded, so we can disable some instrumentation
30
+ * fix test failures in JRuby, REE
31
+ * improve Net::HTTP instrumentation so its more efficient and distinguishes calls
32
+ between web and non-web transactions.
33
+ * database instrumentation notices all database commands in addition to the core commands
34
+ * add support for textmate to dev mode
35
+ * added add_transaction_tracer method to support instrumenting methods as
36
+ if they were web transactions; this will facilitate better visibility of background
37
+ tasks and eventually things like rack, metal and Sinatra
38
+ * adjusted apdex scores to reflect time spent in the mongrel queue
39
+ * fixed incompatibility with JRuby on startup
40
+ * implmented CPU measure for JRuby which reflects the cpu burn for
41
+ all controller actions (does not include background tasks)
42
+ * fixed scope issue with GC instrumentation, subtracting time from caller
43
+ * added # of GC calls to GC instrumentation
44
+ * renamed the dispatcher metric
45
+ * refactored stats_engine code for readability
46
+
47
+ v2.10.0.
48
+ * support unicorn
49
+ * instrumentation of GC for REE and MRE with GC patch
50
+ * support agent restarting when changes are made to the account
51
+ * removed #newrelic_notice_error from Object class, replaced by NewRelic::Agent#notic_error
52
+ * collect histogram statistics
53
+ * add custom parameters to newrelic_notice_error call to display
54
+ extra info for errors
55
+ * add method disable_all_tracing(&block) to execute a block without
56
+ capturing metrics
57
+ * newrelic_ignore now blocks all instrumentation collection for
58
+ the specified actions
59
+ * added doc to method_tracer API and removed second arg
60
+ requirement for add_method_tracer call
61
+ * instrumentation for Net::HTTP
62
+ * remove method_tracer shim to avoid timing problems in monitoring daemons
63
+ * for non-rails daemons, look at APP_ROOT and NRCONFIG env vars for custom locations
64
+
65
+ v2.9.9.
66
+ * Disable at_exit handler for Unicorn which sometimes caused the
67
+ agent to stop reporting immediately.
68
+
69
+ v2.9.8.
70
+ * add instrumentation for Net::HTTP calls, to show up as "External"
71
+ * added support for validating agents in the cloud.
72
+ * recognize Unicorn dispatcher
73
+ * add NewRelic module definitions to ActiveRecord instrumentation
74
+
75
+ v2.9.5.
76
+ * Snow Leopard memory fix
77
+
78
+ v2.9.4.
79
+ * clamp size of data sent to server
80
+ * reset statistics for passenger when forking to avoid erroneous data
81
+ * fix problem deserializing errors from the server
82
+ * fix incompatibility with postgres introduced in 2.9.
83
+
84
+ v2.9.3.
85
+ * fix startup failure in Windows due to memory sampler
86
+ * add JRuby environment information
87
+
88
+ v2.9.2.
89
+ * change default apdex_t to 0.5 seconds
90
+ * fix bug in deployments introduced by multi_homed setting
91
+ * support overriding the log in the agent api
92
+ * fix JRuby problem using objectspace
93
+ * display custom parameters when looking at transactions in dev mode
94
+ * display count of sql statements on the list of transactions in dev mode
95
+ * fixes for merb--thanks to Carl Lerche
96
+
97
+ v2.9.1.
98
+ * add newrelic_ignore_apdex method to controller classes to allow
99
+ you to omit some actions from apdex statistics
100
+ * Add hook for Passenger shutdown events to get more timely shutdown
101
+ notices; this will help in more accurate memory readings in
102
+ Passenger
103
+ * add newrelic_notice_error to Object class
104
+ * optional ability to verify SSL certificates, note that this has some
105
+ performance and reliability implications
106
+ * support multi-homed host with multiple apps running on duplicate
107
+ ports
108
+
109
+ v2.9.0.
110
+ Noteworthy Enhancements
111
+ * give visibility to templates and partials in Rails 2.1 and later, in
112
+ dev mode and production
113
+ * change active record metrics to capture statistics in adapter log()
114
+ call, resulting in lower overhead and improved visibility into
115
+ different DB operations; only AR operations that are not hitting the
116
+ query cache will be measured to avoid overhead
117
+ * added mongrel_rpm to the gem, a standalone daemon listening for custom
118
+ metric values sent from local processes (experimental); do mongrel_rpm
119
+ --help
120
+ * add API for system monitoring daemons (refer to KB articles); changed
121
+ API for manual starting of the agent; refer to
122
+ NewRelic::Agent.manual_start for details
123
+ * do certificate verification on ssl connections to
124
+ collector.newrelic.com
125
+ * support instances appearing in more than one application by allowing a
126
+ semicolon separated list of names for the newrelic.yml app_name
127
+ setting.
128
+ * combined agent logfiles into a single logfile
129
+ * use rpm server time for transaction traces rather than agent time
130
+
131
+ Developer Mode (only) Enhancements
132
+ * show partial rendering in traces
133
+ * improved formatting of metric names in traces
134
+ * added number of queries to transactions in the transaction list
135
+ * added some sorting options for the transaction list
136
+ * added a page showing the list of active threads
137
+
138
+ Compatibility Enhancements
139
+ * ruby 1.9.1 compatibility
140
+ * support concurrency when determining busy times, for 2.2 compatibility
141
+ * in jruby, use Java used heap for memory sampling if the system memory
142
+ is not accessible from an unsupported platform
143
+ * jruby will no longer start the agent now when running the console or
144
+ rake tasks
145
+ * API support for RPM as a footnote add-in
146
+ * webrick support restored
147
+
148
+ Noteworthy bugfixes
149
+ * sample memory on linux by reading /proc/#{$$}/status file
150
+ * fixed ambiguous 'View' metrics showing up in controller breakdown
151
+ * removed Numeric extensions, including round_to, and to_ms
152
+ * using a different timeout mechanism when we post data to RPM
153
+ * remove usage of Rails::Info which had a side effect of enabling
154
+ ActiveRecord even when it wasn't an active framework
155
+ * moved CPU sampler off background thread and onto the harvest thread
156
+ * tests now run cleanly in any rails app using test:newrelic or
157
+ test:plugins
158
+
159
+ Agent improvements to support future RPM enhancements
160
+ * add instrumentation to capture metrics on response codes; not yet
161
+ working in rails 2.3.*
162
+ * added http referer to traced errors
163
+ * capture gem requirements from rails
164
+ * capture cpu utilization adjusted for processor count
165
+ * transaction sampling
166
+
167
+ v2.8.10.
168
+ * fix thin support with rails 2.3.2 when using script/server
169
+ * fix incompatibility with rails 2.3.2 and script/server options
170
+ processing
171
+ * minor tweak to environment gathering for gem mode
172
+
173
+ v2.8.9.
174
+ * fix problem finding the newrelic controller in dev mode
175
+ * fix incompatibility with older versions of optparse
176
+ * fix potential jvm problem with jruby
177
+ * remove test:all task definition to avoid conflicts
178
+ * change error message about window sampler in windows not supported to a
179
+ warning message
180
+
181
+ v2.8.8.
182
+ * fix error with jruby on windows
183
+ * fix problem where webrick was being incorrectly detected causing some
184
+ problems with mongrel application assignments--had to disable webrick
185
+ for now
186
+
187
+ v2.8.7.
188
+ * fix for ssl connection hanging problems
189
+ * fix problem recognizing mongrel in rails 2.3.2
190
+ * fastcgi support in rails 2.3.2
191
+ * put back webrick support
192
+
193
+ v2.8.6.
194
+ * fix for capture_params when using file uploads in controller actions
195
+ * use pure ruby NS lookup for collector host to eliminate possibly
196
+ blocking applications
197
+
198
+ v2.8.5.
199
+ * fix reference to CommandError which was breaking some cap scripts
200
+ * fix incompatibility with Rails 2.0 in the server API
201
+ * fix problem with litespeed with Lite accounts
202
+ * fix problem when ActiveRecord is disabled
203
+ * moved merb instrumentation to Merb::Controller instead of
204
+ AbstractController to address incompatibility with MailController
205
+ * fix problem in devmode displaying sql with embedded urls
206
+
207
+ v2.8.4.
208
+ * fix bug in capistrano recipe causing cap commands to fail with error
209
+ about not finding Version class
210
+
211
+ v2.8.3.
212
+ * refactor unit tests so they will run in a generic rails environment
213
+ * require classes in advance to avoid autoloading. this is to address
214
+ incompatibilities with desert as well as more flexibility in gem
215
+ initialization
216
+ * fixed newrelic_helper.rb 1.9 incompatibility
217
+
218
+ v2.8.2.
219
+ * fix Ruby 1.9 syntax compatibility errors
220
+ * update the class loading sanity check, will notify server of errors
221
+ * fix agent output on script and rake task execution
222
+
223
+ v2.8.1.
224
+ * Convert the deployment information upload script to an executable and
225
+ put in the bin directory. When installed as a gem this command is
226
+ symlinked to /usr/bin. Usage: newrelic_cmd deployments --help
227
+ * Fix issue invoking api when host is not set in newrelic.yml
228
+ * Fix deployments api so it will work from a gem
229
+ * Fix thin incompatibility in developer mode
230
+
231
+ v2.8.0.
232
+ * add beta of api in new_relic_api.rb
233
+ * instrumented dynamic finders in ActiveRecord
234
+ * preliminary support for capturing deployment information via capistrano
235
+ * change memory sampler for solaris to use /usr/bin/ps
236
+ * allow ERB in newrelic.yml file
237
+ * merged support for merb into this version
238
+ * fix incompatibility in the developer mode with the safe_erb plugin
239
+ * fix module namespace issue causing an error accessing
240
+ NewRelic::Instrumentation modules
241
+ * fix issue where the agent sometimes failed to start up if there was a
242
+ transient network problem
243
+ * fix IgnoreSilentlyException message
244
+
245
+ v2.7.4.
246
+ * fix error when trying to serialize some kinds of Enumerable objects
247
+ * added extra debug logging
248
+ * added app_name to app mapping
249
+
250
+ v2.7.3.
251
+ * fix compatibility issue with 1.8.5 causing error with Dir.glob
252
+
253
+ v2.7.2.
254
+ * fix problem with passenger edge not being a detected environment
255
+
256
+ v2.7.1.
257
+ * fix problem with skipped dispatcher instrumentation
258
+
259
+ v2.7.0.
260
+ * Repackage to support both plugin and Gem installation
261
+ * Support passenger/litespeed/jruby application naming
262
+ * Update method for calculating dispatcher queue time
263
+ * Show stack traces in RPM Transaction Traces
264
+ * Capture error source for TemplateErrors
265
+ * Clean up error stack traces.
266
+ * Support query plans from postgres
267
+ * Performance tuning
268
+ * bugfixes
269
+
270
+ v2.5.3.
271
+ * fix error in transaction tracing causing traces not to show up
272
+
273
+ v2.5.2.
274
+ * fixes for postgres explain plan support
275
+
276
+ v2.5.1.
277
+ * bugfixes
278
+
279
+ v2.5.0.
280
+ * add agent support for rpm 1.1 features
281
+ * Fix regression error with thin support
282
+
283
+ v2.4.3.
284
+ * added 'newrelic_ignore' controller class method with :except and :only options for finer grained control
285
+ over the blocking of instrumentation in controllers.
286
+ * bugfixes
287
+
288
+ v2.4.2.
289
+ * error reporting in early access
290
+
291
+ v2.4.1.
292
+ * bugfix: initializing developer mode
293
+
294
+ v2.4.0.
295
+ * Beta support for LiteSpeed and Passenger
296
+
297
+ v2.3.7.
298
+ * bugfixes
299
+
300
+ v2.3.6.
301
+ * bugfixes
302
+
303
+ v2.3.5.
304
+ * bugfixes: pie chart data, rails 1.1 compability
305
+
306
+ v2.3.4.
307
+ * bugfix
308
+
309
+ v2.3.3.
310
+ * bugfix for non-mysql databases
311
+
312
+ v2.3.2.
313
+ * bugfixes
314
+ * Add enhancement for Transaction Traces early access feature
315
+
316
+ v2.3.1.
317
+ * bugfixes
318
+
319
+ v2.3.0.
320
+ + Add support for Transaction Traces early access feature
321
+
322
+ v2.2.2.
323
+ * bugfixes
324
+
325
+ v2.2.1.
326
+ + Add rails 2.1 support for Developer Mode
327
+ + Changes to memory sampler: Add support for JRuby and fix Solaris support.
328
+ * Stop catching exceptions and start catching StandardError; other exception cleanup
329
+ * Add protective exception catching to the stats engine
330
+ * Improved support for thin domain sockets
331
+ * Support JRuby environments
332
+
333
+ v2.1.6.
334
+ * bugfixes
335
+
336
+ v2.1.5.
337
+ * bugfixes
338
+
339
+ v2.1.4.
340
+ * bugfixes
341
+
342
+ v2.1.3.
343
+ * bugfixes
344
+
345
+ v2.1.2.
346
+ * bugfixes
347
+
348
+ v2.1.1.
349
+ * bugfixes
350
+
351
+ v2.1.0.
352
+ * release for private beta
353
+
354
+
data/LICENSE ADDED
@@ -0,0 +1,37 @@
1
+ Copyright (c) 2008-2009 New Relic, Inc. All rights reserved.
2
+
3
+ Certain inventions disclosed in this file may be claimed within
4
+ patents owned or patent applications filed by New Relic, Inc. or third
5
+ parties.
6
+
7
+ Subject to the terms of this notice, New Relic grants you a
8
+ nonexclusive, nontransferable license, without the right to
9
+ sublicense, to (a) install and execute one copy of these files on any
10
+ number of workstations owned or controlled by you and (b) distribute
11
+ verbatim copies of these files to third parties. As a condition to the
12
+ foregoing grant, you must provide this notice along with each copy you
13
+ distribute and you must not remove, alter, or obscure this notice. All
14
+ other use, reproduction, modification, distribution, or other
15
+ exploitation of these files is strictly prohibited, except as may be set
16
+ forth in a separate written license agreement between you and New
17
+ Relic. The terms of any such license agreement will control over this
18
+ notice. The license stated above will be automatically terminated and
19
+ revoked if you exceed its scope or violate any of the terms of this
20
+ notice.
21
+
22
+ This License does not grant permission to use the trade names,
23
+ trademarks, service marks, or product names of New Relic, except as
24
+ required for reasonable and customary use in describing the origin of
25
+ this file and reproducing the content of this notice. You may not
26
+ mark or brand this file with any trade name, trademarks, service
27
+ marks, or product names other than the original brand (if any)
28
+ provided by New Relic.
29
+
30
+ Unless otherwise expressly agreed by New Relic in a separate written
31
+ license agreement, these files are provided AS IS, WITHOUT WARRANTY OF
32
+ ANY KIND, including without any implied warranties of MERCHANTABILITY,
33
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE, or NON-INFRINGEMENT. As a
34
+ condition to your use of these files, you are solely responsible for
35
+ such use. New Relic will have no liability to you for direct,
36
+ indirect, consequential, incidental, special, or punitive damages or
37
+ for lost profits or data.
@@ -0,0 +1,10 @@
1
+
2
+ Important Note!
3
+
4
+ Starting in 2.10.2 we created an external 'rpm_contrib' gem and moved
5
+ some of the contributed instrumentation into it. If you were
6
+ using this gem to monitor DelayedJob then you will need to
7
+ install the rpm_contrib gem instead.
8
+
9
+ See http://github.com/newrelic/rpm_contrib
10
+
@@ -0,0 +1,138 @@
1
+ New Relic RPM
2
+ =============
3
+
4
+ New Relic RPM is a Ruby performance management system, developed by
5
+ [New Relic, Inc](http://www.newrelic.com). RPM provides you with deep
6
+ information about the performance of your Ruby on Rails or Merb
7
+ application as it runs in production. The New Relic Agent is
8
+ dual-purposed as a either a Rails plugin or a Gem, hosted on
9
+ [github](http://github.com/newrelic/rpm/tree/master) and Rubyforge.
10
+
11
+ The New Relic Agent runs in one of two modes:
12
+
13
+ **Developer Mode** : Adds a web interface mapped to /newrelic to your
14
+ application for showing detailed performance metrics on a page by
15
+ page basis.
16
+
17
+ **Production Mode** : Low overhead instrumentation that captures
18
+ detailed information on your application running in production and
19
+ transmits them to rpm.newrelic.com where you can monitor them in
20
+ real time.
21
+
22
+ ### Supported Environments
23
+
24
+ * Ruby 1.8.6, 1.8.7 or 1.9.1
25
+ * JRuby
26
+ * Rails 1.2.6 or above
27
+ * Merb 1.0 or above
28
+
29
+ Developer Mode
30
+ --------------
31
+
32
+ Developer mode is on by default when you run your application in the
33
+ development environment (but not when it runs in other environments.)
34
+ When running in developer mode, RPM will track the performance of
35
+ every http request serviced by your application, and store in memory
36
+ this information for the last 100 http transactions.
37
+
38
+ When running in Developer Mode, the RPM will also add a few pages to
39
+ your application that allow you to analyze this performance
40
+ information. (Don't worry--those pages are not added to your
41
+ application's routes when you run in production mode.)
42
+
43
+ To view this performance information, including detailed SQL statement
44
+ analysis, open `/newrelic` in your web application. For instance if
45
+ you are running mongrel or thin on port 3000, enter the following into
46
+ your browser:
47
+
48
+ http://localhost:3000/newrelic
49
+
50
+ Production Mode
51
+ ---------------
52
+
53
+ When your application runs in the production environment, the New
54
+ Relic agent runs in production mode. It connects to the New Relic RPM
55
+ service and sends deep performance data to the RPM service for your
56
+ analysis. To view this data, login to
57
+ [http://rpm.newrelic.com](http://rpm.newrelic.com).
58
+
59
+ NOTE: You must have a valid account and license key to view this data
60
+ online. Refer to instructions in *Getting Started*, below.
61
+
62
+ Getting Started
63
+ ===============
64
+
65
+ RPM requires an agent be installed in the application as either a
66
+ Rails plug-in or a gem. Both are available on RubyForge--instructions
67
+ below.
68
+
69
+ To use Developer Mode, simply install the gem or plugin into your
70
+ application and follow the instructions below.
71
+
72
+ To monitor your applications in production, create an account at
73
+ [www.newrelic.com](http://newrelic.com/get-RPM.html). There you can
74
+ sign up for a free Lite account or one of our paid subscriptions.
75
+
76
+ Once you receive the welcome e-mail with a license key and
77
+ `newrelic.yml` file, copy the `newrelic.yml` file into your app config
78
+ directory.
79
+
80
+ ### Rails Plug-In Installation
81
+
82
+ script/plugin install http://newrelic.rubyforge.org/svn/newrelic_rpm
83
+
84
+ ### Gem Installation
85
+
86
+ sudo gem install newrelic_rpm
87
+
88
+ For Rails, edit `environment.rb` and add to the initalizer block:
89
+
90
+ config.gem "newrelic_rpm"
91
+
92
+ The Developer Mode is unavailable when using the gem on Rails versions
93
+ prior to 2.0.
94
+
95
+ ### Merb Support
96
+
97
+ To monitor a merb app install the newrelic_rpm gem and add
98
+
99
+ dependency 'newrelic_rpm'
100
+
101
+ to your init.rb file.
102
+
103
+ Current features implemented:
104
+
105
+ * Standard monitoring, overview pages
106
+ * Error capturing
107
+ * Full Active Record instrumentation, including SQL explains
108
+ * Very limited Data Mapper instrumentation
109
+ * Transaction Traces are implemented but will not be very useful
110
+ with Data Mapper until more work is done with the Data Mapper
111
+ instrumentation
112
+
113
+ Still under development:
114
+
115
+ * Developer Mode
116
+ * Data Mapper bindings
117
+
118
+ ### Github
119
+
120
+ The agent is also available on Github under newrelic/rpm. Fork away!
121
+
122
+ ### Support
123
+
124
+ Reach out to us--and to fellow RPM users--at
125
+ [support.newrelic.com](http://support.newrelic.com/discussions/support).
126
+ There you'll find documentation, FAQs, and forums where you can submit
127
+ suggestions and discuss RPM with New Relic staff and other users.
128
+
129
+ Find a bug? E-mail support@newrelic.com, or post it to
130
+ [support.newrelic.com](http://support.newrelic.com/discussions/support).
131
+
132
+ Refer to [our website](http://www.newrelic.com/support) for other
133
+ support channels.
134
+
135
+ Thank you, and may your application scale to infinity plus one.
136
+
137
+ Lew Cirne, Founder and CEO<br/>
138
+ New Relic, Inc.