newrelic_rpm 4.0.0.332 → 4.1.0.333
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +0 -1
- data/CHANGELOG.md +22 -0
- data/LICENSE +1 -27
- data/README.md +4 -57
- data/lib/new_relic/agent.rb +0 -1
- data/lib/new_relic/agent/attribute_filter.rb +0 -1
- data/lib/new_relic/agent/configuration/default_source.rb +3 -32
- data/lib/new_relic/agent/error_collector.rb +0 -2
- data/lib/new_relic/agent/http_clients/curb_wrappers.rb +1 -1
- data/lib/new_relic/agent/http_clients/typhoeus_wrappers.rb +1 -1
- data/lib/new_relic/agent/http_clients/uri_util.rb +12 -7
- data/lib/new_relic/agent/stats.rb +0 -14
- data/lib/new_relic/agent/stats_engine.rb +171 -3
- data/lib/new_relic/agent/supported_versions.rb +9 -9
- data/lib/new_relic/agent/traced_method_stack.rb +1 -1
- data/lib/new_relic/agent/transaction/attributes.rb +0 -2
- data/lib/new_relic/agent/transaction/external_request_segment.rb +1 -5
- data/lib/new_relic/agent/transaction/trace_node.rb +0 -10
- data/lib/new_relic/agent/transaction_sample_builder.rb +0 -3
- data/lib/new_relic/agent/transaction_sampler.rb +3 -13
- data/lib/new_relic/collection_helper.rb +0 -18
- data/lib/new_relic/control/frameworks/rails.rb +1 -21
- data/lib/new_relic/control/frameworks/rails3.rb +1 -1
- data/lib/new_relic/noticed_error.rb +1 -0
- data/lib/new_relic/version.rb +1 -1
- data/newrelic.yml +0 -4
- data/newrelic_rpm.gemspec +1 -1
- data/test/config/newrelic.yml +1 -1
- data/test/multiverse/lib/multiverse/runner.rb +9 -1
- data/test/multiverse/suites/active_record/config/newrelic.yml +0 -1
- data/test/multiverse/suites/agent_only/config/newrelic.yml +0 -1
- data/test/multiverse/suites/capistrano/config/newrelic.yml +0 -1
- data/test/multiverse/suites/capistrano2/config/newrelic.yml +0 -1
- data/test/multiverse/suites/curb/config/newrelic.yml +0 -1
- data/test/multiverse/suites/datamapper/config/newrelic.yml +0 -1
- data/test/multiverse/suites/deferred_instrumentation/config/newrelic.yml +0 -1
- data/test/multiverse/suites/delayed_job/config/newrelic.yml +0 -1
- data/test/multiverse/suites/excon/config/newrelic.yml +0 -1
- data/test/multiverse/suites/grape/config/newrelic.yml +0 -1
- data/test/multiverse/suites/high_security/config/newrelic.yml +0 -1
- data/test/multiverse/suites/httpclient/config/newrelic.yml +0 -1
- data/test/multiverse/suites/httprb/config/newrelic.yml +0 -1
- data/test/multiverse/suites/json/config/newrelic.yml +0 -1
- data/test/multiverse/suites/marshalling/config/newrelic.yml +0 -1
- data/test/multiverse/suites/mongo/config/newrelic.yml +0 -1
- data/test/multiverse/suites/net_http/config/newrelic.yml +0 -1
- data/test/multiverse/suites/padrino/config/newrelic.yml +0 -1
- data/test/multiverse/suites/rack/config/newrelic.yml +0 -1
- data/test/multiverse/suites/rails/config/newrelic.yml +0 -1
- data/test/multiverse/suites/rake/config/newrelic.yml +0 -1
- data/test/multiverse/suites/redis/config/newrelic.yml +0 -1
- data/test/multiverse/suites/resque/config/newrelic.yml +0 -1
- data/test/multiverse/suites/sequel/config/newrelic.yml +0 -1
- data/test/multiverse/suites/sidekiq/config/newrelic.yml +0 -1
- data/test/multiverse/suites/sinatra/config/newrelic.yml +0 -1
- data/test/multiverse/suites/typhoeus/config/newrelic.yml +0 -1
- data/test/multiverse/suites/yajl/config/newrelic.yml +0 -1
- data/test/multiverse/test/suite_examples/one/a/config/newrelic.yml +0 -1
- data/test/multiverse/test/suite_examples/one/b/config/newrelic.yml +0 -1
- data/test/new_relic/agent/agent/connect_test.rb +3 -12
- data/test/new_relic/agent/agent/start_test.rb +4 -2
- data/test/new_relic/agent/busy_calculator_test.rb +13 -5
- data/test/new_relic/agent/pipe_channel_manager_test.rb +3 -4
- data/test/new_relic/agent/stats_engine_test.rb +313 -1
- data/test/new_relic/agent/stats_test.rb +0 -20
- data/test/new_relic/agent/traced_method_stack_test.rb +2 -5
- data/test/new_relic/agent/transaction/external_request_segment_test.rb +5 -0
- data/test/new_relic/agent/transaction/trace_node_test.rb +0 -19
- data/test/new_relic/agent/transaction_sampler_test.rb +3 -6
- data/test/new_relic/collection_helper_test.rb +0 -39
- data/test/new_relic/control_test.rb +2 -4
- data/test/new_relic/license_test.rb +4 -14
- data/test/performance/suites/external_segment.rb +0 -2
- data/test/performance/suites/rack_middleware.rb +1 -3
- data/test/performance/suites/transaction_tracing.rb +0 -1
- metadata +2 -94
- data/lib/conditional_vendored_metric_parser.rb +0 -9
- data/lib/new_relic/agent/instrumentation/rubyprof.rb +0 -26
- data/lib/new_relic/agent/stats_engine/metric_stats.rb +0 -188
- data/lib/new_relic/agent/transaction/developer_mode_sample_buffer.rb +0 -62
- data/lib/new_relic/merbtasks.rb +0 -10
- data/lib/new_relic/rack/developer_mode.rb +0 -321
- data/lib/new_relic/rack/developer_mode/segment_summary.rb +0 -56
- data/test/new_relic/agent/stats_engine/metric_stats_test.rb +0 -328
- data/test/new_relic/agent/transaction/developer_mode_sample_buffer_test.rb +0 -75
- data/test/new_relic/metric_parser/metric_parser_test.rb +0 -17
- data/test/new_relic/rack/developer_mode/segment_summary_test.rb +0 -96
- data/test/new_relic/rack/developer_mode_helper_test.rb +0 -136
- data/test/new_relic/rack/developer_mode_test.rb +0 -96
- data/ui/helpers/developer_mode_helper.rb +0 -325
- data/ui/helpers/google_pie_chart.rb +0 -54
- data/ui/views/layouts/newrelic_default.rhtml +0 -48
- data/ui/views/newrelic/_explain_plans.rhtml +0 -27
- data/ui/views/newrelic/_sample.rhtml +0 -20
- data/ui/views/newrelic/_segment.rhtml +0 -28
- data/ui/views/newrelic/_segment_limit_message.rhtml +0 -1
- data/ui/views/newrelic/_segment_row.rhtml +0 -12
- data/ui/views/newrelic/_show_sample_detail.rhtml +0 -24
- data/ui/views/newrelic/_show_sample_sql.rhtml +0 -24
- data/ui/views/newrelic/_show_sample_summary.rhtml +0 -3
- data/ui/views/newrelic/_sql_row.rhtml +0 -16
- data/ui/views/newrelic/_stack_trace.rhtml +0 -15
- data/ui/views/newrelic/_table.rhtml +0 -12
- data/ui/views/newrelic/explain_sql.rhtml +0 -43
- data/ui/views/newrelic/file/images/arrow-close.png +0 -0
- data/ui/views/newrelic/file/images/arrow-open.png +0 -0
- data/ui/views/newrelic/file/images/blue_bar.gif +0 -0
- data/ui/views/newrelic/file/images/file_icon.png +0 -0
- data/ui/views/newrelic/file/images/gray_bar.gif +0 -0
- data/ui/views/newrelic/file/images/new-relic-rpm-desktop.gif +0 -0
- data/ui/views/newrelic/file/images/new_relic_rpm_desktop.gif +0 -0
- data/ui/views/newrelic/file/images/textmate.png +0 -0
- data/ui/views/newrelic/file/javascript/jquery-1.4.2.js +0 -6243
- data/ui/views/newrelic/file/javascript/transaction_sample.js +0 -123
- data/ui/views/newrelic/file/stylesheets/style.css +0 -490
- data/ui/views/newrelic/index.rhtml +0 -70
- data/ui/views/newrelic/sample_not_found.rhtml +0 -2
- data/ui/views/newrelic/show_sample.rhtml +0 -81
- data/ui/views/newrelic/threads.rhtml +0 -45
- data/vendor/gems/metric_parser-0.1.0.pre1/.specification +0 -116
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb +0 -5
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb +0 -70
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/action_mailer.rb +0 -18
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb +0 -35
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_record.rb +0 -37
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/apdex.rb +0 -93
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/background_transaction.rb +0 -11
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/client.rb +0 -50
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller.rb +0 -71
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_cpu.rb +0 -47
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb +0 -21
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database.rb +0 -52
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb +0 -28
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net.rb +0 -32
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net_parser.rb +0 -21
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/errors.rb +0 -15
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/external.rb +0 -59
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb +0 -44
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/gc.rb +0 -24
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/hibernate_session.rb +0 -11
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java.rb +0 -35
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java_parser.rb +0 -21
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp.rb +0 -38
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp_tag.rb +0 -11
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/mem_cache.rb +0 -56
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/metric_parser.rb +0 -138
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/middleware.rb +0 -33
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/nested.rb +0 -23
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb +0 -31
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/other_transaction.rb +0 -44
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet.rb +0 -11
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_context_listener.rb +0 -11
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_filter.rb +0 -11
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_init.rb +0 -11
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb +0 -31
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr_request_handler.rb +0 -19
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring.rb +0 -58
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_controller.rb +0 -10
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_view.rb +0 -10
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_action.rb +0 -24
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_result.rb +0 -24
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/version.rb +0 -9
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/view.rb +0 -74
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_frontend.rb +0 -22
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_service.rb +0 -18
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb +0 -137
@@ -1,70 +0,0 @@
|
|
1
|
-
<table>
|
2
|
-
<tr>
|
3
|
-
<td valign=top>
|
4
|
-
<table class="transaction_list_table">
|
5
|
-
<thead>
|
6
|
-
<tr>
|
7
|
-
<td>
|
8
|
-
<%= link_to_if (params[:h] ||params[:u]), 'Timestamp' %>
|
9
|
-
</td>
|
10
|
-
<td>
|
11
|
-
<%= link_to_unless_current('Resp. Time', :h => 'y') %>
|
12
|
-
</td>
|
13
|
-
<td>
|
14
|
-
<%= link_to_unless_current('URL', :u =>'y') %>
|
15
|
-
</td>
|
16
|
-
<td/>
|
17
|
-
</tr>
|
18
|
-
</thead><% @samples.each do |sample| %>
|
19
|
-
<%= render :partial => :sample, :object => sample %>
|
20
|
-
<% end %>
|
21
|
-
</table>
|
22
|
-
</td>
|
23
|
-
<td valign=top>
|
24
|
-
<% if defined?(Rainbows) || defined?(Unicorn) || defined?(Passenger) %>
|
25
|
-
<div class="flash">
|
26
|
-
<p id="errorExplanation">
|
27
|
-
We've noticed you're running a forking web server, like Rainbows, Unicorn, or Passenger. See Below</p><p> Developer mode may be unpredictable,
|
28
|
-
since those servers run many processes and developer mode is entirely in the process.</p><p> We suggest you try Thin,
|
29
|
-
Mongrel, or another single-process web server for development mode.</p><p>
|
30
|
-
(You can ignore this message if you're sure that you're running only one process, and it's not being reaped when inactive.)
|
31
|
-
</p>
|
32
|
-
</div>
|
33
|
-
<% end %>
|
34
|
-
|
35
|
-
<%= link_to_if @samples.size > 0, "Clear Transactions (#{@samples.size})", 'reset' %><br/>
|
36
|
-
<%= link_to "List Threads", 'threads' %><br/>
|
37
|
-
<% if NewRelic::Agent.config[:'profiling.available'] %>
|
38
|
-
<p><b>Profiling available:</b>
|
39
|
-
<% if NewRelic::Rack::DeveloperMode.profiling_enabled? %>
|
40
|
-
<%= link_to "Stop Profiling", 'profile?stop=true'%>
|
41
|
-
<% else %>
|
42
|
-
<%= link_to "Start Profiling", 'profile?start=true' %>
|
43
|
-
<% end %>
|
44
|
-
</p>
|
45
|
-
<% else %>
|
46
|
-
<p>You can use the ruby-prof gem to display profiles of your actions with Developer Mode. Just
|
47
|
-
install the ruby-prof gem and restart your app.</p>
|
48
|
-
<% end %>
|
49
|
-
<h3>Welcome</h3>
|
50
|
-
<p>
|
51
|
-
Welcome to <b>New Relic Developer Mode</b>. This Rails extension traces the performance activity
|
52
|
-
of your 100 most recent controller actions in your rails application, and presents the performance
|
53
|
-
information for your analysis.
|
54
|
-
</p>
|
55
|
-
<p>
|
56
|
-
The url's of the most recent transactions are presented to the left, most-recent first. Click
|
57
|
-
on any one of these to drill down and inspect its performance information.
|
58
|
-
</p>
|
59
|
-
<p>
|
60
|
-
The identical agent technology that provides this data is also capable of monitoring your application as it
|
61
|
-
runs in production. For more information, visit <a href="http://www.newrelic.com">http://www.newrelic.com</a>.
|
62
|
-
</p>
|
63
|
-
<p>
|
64
|
-
Note, to increase the accuracy of our performance measurement, we automatically "strip out" any
|
65
|
-
time spent in application code loading, which will not happen when your application runs in
|
66
|
-
production mode.
|
67
|
-
</p>
|
68
|
-
</td>
|
69
|
-
</tr>
|
70
|
-
</table>
|
@@ -1,81 +0,0 @@
|
|
1
|
-
<script type="text/javascript" src="/newrelic/file/javascript/transaction_sample.js"></script>
|
2
|
-
<div id='summary_table'>
|
3
|
-
<table class="light_background">
|
4
|
-
<tr>
|
5
|
-
<th>URL:</th>
|
6
|
-
<td><%= @sample.uri %></td>
|
7
|
-
</tr>
|
8
|
-
<tr>
|
9
|
-
<th>Controller:</th>
|
10
|
-
<td><%= @sample_controller_name %></td>
|
11
|
-
</tr>
|
12
|
-
<tr>
|
13
|
-
<th>Action:</th>
|
14
|
-
<td><%= @sample_action_name %></td>
|
15
|
-
</tr>
|
16
|
-
<tr>
|
17
|
-
<th>Start Time:</th>
|
18
|
-
<td><%= format_timestamp(Time.at(@sample.start_time)) %></td>
|
19
|
-
</tr>
|
20
|
-
<tr>
|
21
|
-
<th>Duration:</th>
|
22
|
-
<td><%= colorize(@sample.duration, 1, 2) %> ms</td>
|
23
|
-
</tr>
|
24
|
-
<tr>
|
25
|
-
<th>CPU Burn:</th>
|
26
|
-
<% cpu_time = @sample.attributes.intrinsic_attributes_for(NewRelic::Agent::AttributeFilter::DST_TRANSACTION_TRACER)[:cpu_time] %>
|
27
|
-
<td><%= "#{to_ms(cpu_time)} ms" if cpu_time %></td>
|
28
|
-
</tr>
|
29
|
-
|
30
|
-
<% unless @custom_params.empty? %>
|
31
|
-
<tr>
|
32
|
-
<th valign="top">Custom Params:</th>
|
33
|
-
<td>
|
34
|
-
<small>
|
35
|
-
<% @custom_params.each do |k,v| %>
|
36
|
-
<b><%= h k %>: </b><%=h v%><br/>
|
37
|
-
<% end %>
|
38
|
-
</small>
|
39
|
-
</td>
|
40
|
-
</tr>
|
41
|
-
<% end %>
|
42
|
-
|
43
|
-
<% unless @request_params.empty? %>
|
44
|
-
<tr>
|
45
|
-
<th valign="top">HTTP Params:</th>
|
46
|
-
<td>
|
47
|
-
<a href="#" onClick="show_request_params()" id="params_link"><%= @request_params.length %>...</a>
|
48
|
-
|
49
|
-
<div id='request_params' style="display: none;">
|
50
|
-
<small>
|
51
|
-
<% @request_params.each do |k,v| %>
|
52
|
-
<b><%= h k %>: </b><%=h v%><br/>
|
53
|
-
<% end %>
|
54
|
-
</small>
|
55
|
-
</div>
|
56
|
-
</td>
|
57
|
-
</tr>
|
58
|
-
<% end %>
|
59
|
-
|
60
|
-
</table>
|
61
|
-
</div>
|
62
|
-
|
63
|
-
<br/>
|
64
|
-
<div id="view_sample">
|
65
|
-
<% if @sample.profile %>
|
66
|
-
<%= profile_table(@sample, @profile_options) %>
|
67
|
-
<% else %>
|
68
|
-
<div align=center width="100%">
|
69
|
-
<%= show_view_link 'Summary', 'show_sample_summary' %>
|
70
|
-
<%= show_view_link 'Details', 'show_sample_detail' %>
|
71
|
-
<%= show_view_link 'SQL', 'show_sample_sql' %>
|
72
|
-
</div>
|
73
|
-
<br/>
|
74
|
-
|
75
|
-
<%= %w[show_sample_summary show_sample_sql show_sample_detail].collect do |p|
|
76
|
-
options = {:align => 'center', :id => p}
|
77
|
-
options[:style] = 'display: none' unless @req.path.include?(p)
|
78
|
-
content_tag('div', render(:partial => p), options)
|
79
|
-
end.join(' ') %>
|
80
|
-
<% end %>
|
81
|
-
</div>
|
@@ -1,45 +0,0 @@
|
|
1
|
-
|
2
|
-
<h2>Thread List</h2>
|
3
|
-
<p><%= link_to 'Back', 'index' %></p>
|
4
|
-
<table>
|
5
|
-
<thead><th class="title" colspan="5">Application Threads</th></thead>
|
6
|
-
<thead>
|
7
|
-
<th class="left">Name</th>
|
8
|
-
<th class="left">Status</th>
|
9
|
-
<th class="left">Group</th>
|
10
|
-
<th class="left">Priority</th>
|
11
|
-
</thead>
|
12
|
-
<%
|
13
|
-
main = Thread.main
|
14
|
-
threads = Thread.list - [ main ]
|
15
|
-
nr_threads = []
|
16
|
-
threads.delete_if { | thread | nr_threads << thread if thread.key?(:newrelic_label) }
|
17
|
-
([ main ] + threads).each_with_index do | thread, i | %>
|
18
|
-
<tr class="odd_row">
|
19
|
-
<td valign="top"><%= h(thread == main ? 'main' : thread.to_s) %></td>
|
20
|
-
<td valign="top"><%= h(thread.status || 'terminated with exception') %></td>
|
21
|
-
<td valign="top"><%= h(thread.group || 'none') %></td>
|
22
|
-
<td valign="top"><%= h thread.priority %></td>
|
23
|
-
</tr>
|
24
|
-
<% end %>
|
25
|
-
<% if nr_threads.size > 0 %>
|
26
|
-
<tr><td> </td></tr>
|
27
|
-
<thead><th class="title" colspan="5">New Relic Agent Threads</th></thead>
|
28
|
-
<thead>
|
29
|
-
<th class="left">Name</th>
|
30
|
-
<th class="left">Status</th>
|
31
|
-
<th class="left">Group</th>
|
32
|
-
<th class="left">Priority</th>
|
33
|
-
</thead>
|
34
|
-
|
35
|
-
<% nr_threads.each_with_index do | thread, i | %>
|
36
|
-
<tr class="odd_row">
|
37
|
-
<td valign="top"><%= h thread[:newrelic_label] %></td>
|
38
|
-
<td valign="top"><%= h(thread.status || 'terminated with exception') %></td>
|
39
|
-
<td valign="top"><%= h(thread.group || 'none') %></td>
|
40
|
-
<td valign="top"><%= h thread.priority %></td>
|
41
|
-
</tr>
|
42
|
-
<% end %>
|
43
|
-
<% end %>
|
44
|
-
|
45
|
-
</table>
|
@@ -1,116 +0,0 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
2
|
-
name: metric_parser
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
hash: 270495464
|
5
|
-
prerelease: true
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
- pre1
|
11
|
-
version: 0.1.0.pre1
|
12
|
-
platform: ruby
|
13
|
-
authors:
|
14
|
-
- Justin George
|
15
|
-
autorequire:
|
16
|
-
bindir: bin
|
17
|
-
cert_chain: []
|
18
|
-
|
19
|
-
date: 2010-08-12 00:00:00 +00:00
|
20
|
-
default_executable:
|
21
|
-
dependencies: []
|
22
|
-
|
23
|
-
description: A standard way to parse New Relic metric names
|
24
|
-
email:
|
25
|
-
- support@newrelic.com
|
26
|
-
executables: []
|
27
|
-
|
28
|
-
extensions: []
|
29
|
-
|
30
|
-
extra_rdoc_files: []
|
31
|
-
|
32
|
-
files:
|
33
|
-
- lib/metric_parser.rb
|
34
|
-
- lib/new_relic/metric_parser/action_mailer.rb
|
35
|
-
- lib/new_relic/metric_parser/active_merchant.rb
|
36
|
-
- lib/new_relic/metric_parser/active_record.rb
|
37
|
-
- lib/new_relic/metric_parser/apdex.rb
|
38
|
-
- lib/new_relic/metric_parser/background_transaction.rb
|
39
|
-
- lib/new_relic/metric_parser/client.rb
|
40
|
-
- lib/new_relic/metric_parser/controller.rb
|
41
|
-
- lib/new_relic/metric_parser/controller_cpu.rb
|
42
|
-
- lib/new_relic/metric_parser/controller_ext.rb
|
43
|
-
- lib/new_relic/metric_parser/database.rb
|
44
|
-
- lib/new_relic/metric_parser/database_pool.rb
|
45
|
-
- lib/new_relic/metric_parser/dot_net.rb
|
46
|
-
- lib/new_relic/metric_parser/dot_net_parser.rb
|
47
|
-
- lib/new_relic/metric_parser/errors.rb
|
48
|
-
- lib/new_relic/metric_parser/external.rb
|
49
|
-
- lib/new_relic/metric_parser/frontend.rb
|
50
|
-
- lib/new_relic/metric_parser/gc.rb
|
51
|
-
- lib/new_relic/metric_parser/hibernate_session.rb
|
52
|
-
- lib/new_relic/metric_parser/java.rb
|
53
|
-
- lib/new_relic/metric_parser/java_parser.rb
|
54
|
-
- lib/new_relic/metric_parser/jsp.rb
|
55
|
-
- lib/new_relic/metric_parser/jsp_tag.rb
|
56
|
-
- lib/new_relic/metric_parser/mem_cache.rb
|
57
|
-
- lib/new_relic/metric_parser/metric_parser.rb
|
58
|
-
- lib/new_relic/metric_parser/orm.rb
|
59
|
-
- lib/new_relic/metric_parser/other_transaction.rb
|
60
|
-
- lib/new_relic/metric_parser/servlet.rb
|
61
|
-
- lib/new_relic/metric_parser/servlet_context_listener.rb
|
62
|
-
- lib/new_relic/metric_parser/servlet_filter.rb
|
63
|
-
- lib/new_relic/metric_parser/servlet_init.rb
|
64
|
-
- lib/new_relic/metric_parser/solr.rb
|
65
|
-
- lib/new_relic/metric_parser/solr_request_handler.rb
|
66
|
-
- lib/new_relic/metric_parser/spring.rb
|
67
|
-
- lib/new_relic/metric_parser/spring_controller.rb
|
68
|
-
- lib/new_relic/metric_parser/spring_view.rb
|
69
|
-
- lib/new_relic/metric_parser/struts_action.rb
|
70
|
-
- lib/new_relic/metric_parser/struts_result.rb
|
71
|
-
- lib/new_relic/metric_parser/version.rb
|
72
|
-
- lib/new_relic/metric_parser/view.rb
|
73
|
-
- lib/new_relic/metric_parser/web_frontend.rb
|
74
|
-
- lib/new_relic/metric_parser/web_service.rb
|
75
|
-
- lib/new_relic/metric_parser/web_transaction.rb
|
76
|
-
- lib/new_relic/metric_parser.rb
|
77
|
-
- LICENSE
|
78
|
-
- README
|
79
|
-
has_rdoc: true
|
80
|
-
homepage: http://www.newrelic.com
|
81
|
-
licenses: []
|
82
|
-
|
83
|
-
post_install_message:
|
84
|
-
rdoc_options: []
|
85
|
-
|
86
|
-
require_paths:
|
87
|
-
- lib
|
88
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ">="
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
hash: 3
|
94
|
-
segments:
|
95
|
-
- 0
|
96
|
-
version: "0"
|
97
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
hash: 31
|
103
|
-
segments:
|
104
|
-
- 1
|
105
|
-
- 2
|
106
|
-
- 0
|
107
|
-
version: 1.2.0
|
108
|
-
requirements: []
|
109
|
-
|
110
|
-
rubyforge_project:
|
111
|
-
rubygems_version: 1.3.7
|
112
|
-
signing_key:
|
113
|
-
specification_version: 3
|
114
|
-
summary: A standard way to parse New Relic metric names
|
115
|
-
test_files: []
|
116
|
-
|
@@ -1,70 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# This file is distributed under New Relic's license terms.
|
3
|
-
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
|
4
|
-
|
5
|
-
module NewRelic
|
6
|
-
# Metric parsing logic mixin. Given a metric name (attribute called "name"), provide a set of accessors
|
7
|
-
# that enable inspection of the metric. A metric has 2 or more segments, each separated
|
8
|
-
# by the '/' character. The metric's category is specified by its first segment. Following
|
9
|
-
# are the set of categories currently supported by NewRelic's default metric set:
|
10
|
-
#
|
11
|
-
# * Controller
|
12
|
-
# * ActiveRecord
|
13
|
-
# * Rails
|
14
|
-
# * WebService
|
15
|
-
# * View
|
16
|
-
# * Database
|
17
|
-
# * Custom
|
18
|
-
#
|
19
|
-
# Based on the category of the metric, specific parsing logic is defined in the source files
|
20
|
-
# countained in the "metric_parsers" sub directory local to this file.
|
21
|
-
#
|
22
|
-
module MetricParser
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
require 'new_relic/metric_parser/metric_parser'
|
27
|
-
require 'new_relic/metric_parser/apdex'
|
28
|
-
|
29
|
-
require 'new_relic/metric_parser/action_mailer'
|
30
|
-
require 'new_relic/metric_parser/active_merchant'
|
31
|
-
require 'new_relic/metric_parser/active_record'
|
32
|
-
require 'new_relic/metric_parser/apdex'
|
33
|
-
require 'new_relic/metric_parser/background_transaction'
|
34
|
-
require 'new_relic/metric_parser/client'
|
35
|
-
require 'new_relic/metric_parser/controller'
|
36
|
-
require 'new_relic/metric_parser/controller_cpu'
|
37
|
-
require 'new_relic/metric_parser/controller_ext'
|
38
|
-
require 'new_relic/metric_parser/database'
|
39
|
-
require 'new_relic/metric_parser/database_pool'
|
40
|
-
require 'new_relic/metric_parser/dot_net'
|
41
|
-
require 'new_relic/metric_parser/errors'
|
42
|
-
require 'new_relic/metric_parser/external'
|
43
|
-
require 'new_relic/metric_parser/frontend'
|
44
|
-
require 'new_relic/metric_parser/gc'
|
45
|
-
require 'new_relic/metric_parser/hibernate_session'
|
46
|
-
require 'new_relic/metric_parser/java'
|
47
|
-
require 'new_relic/metric_parser/java_parser'
|
48
|
-
require 'new_relic/metric_parser/jsp'
|
49
|
-
require 'new_relic/metric_parser/jsp_tag'
|
50
|
-
require 'new_relic/metric_parser/mem_cache'
|
51
|
-
require 'new_relic/metric_parser/metric_parser'
|
52
|
-
require 'new_relic/metric_parser/middleware'
|
53
|
-
require 'new_relic/metric_parser/nested'
|
54
|
-
require 'new_relic/metric_parser/orm'
|
55
|
-
require 'new_relic/metric_parser/other_transaction'
|
56
|
-
require 'new_relic/metric_parser/servlet'
|
57
|
-
require 'new_relic/metric_parser/servlet_context_listener'
|
58
|
-
require 'new_relic/metric_parser/servlet_filter'
|
59
|
-
require 'new_relic/metric_parser/solr'
|
60
|
-
require 'new_relic/metric_parser/solr_request_handler'
|
61
|
-
require 'new_relic/metric_parser/spring'
|
62
|
-
require 'new_relic/metric_parser/spring_controller'
|
63
|
-
require 'new_relic/metric_parser/spring_view'
|
64
|
-
require 'new_relic/metric_parser/struts_action'
|
65
|
-
require 'new_relic/metric_parser/struts_result'
|
66
|
-
require 'new_relic/metric_parser/version'
|
67
|
-
require 'new_relic/metric_parser/view'
|
68
|
-
require 'new_relic/metric_parser/web_frontend'
|
69
|
-
require 'new_relic/metric_parser/web_service'
|
70
|
-
require 'new_relic/metric_parser/web_transaction'
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# This file is distributed under New Relic's license terms.
|
3
|
-
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
|
4
|
-
|
5
|
-
module NewRelic
|
6
|
-
autoload :MetricParser, 'new_relic/metric_parser'
|
7
|
-
module MetricParser
|
8
|
-
class ActionMailer < NewRelic::MetricParser::MetricParser
|
9
|
-
|
10
|
-
def is_action_mailer?; true; end
|
11
|
-
|
12
|
-
def short_name
|
13
|
-
"ActionMailer - #{segments[1]}"
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# This file is distributed under New Relic's license terms.
|
3
|
-
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
|
4
|
-
|
5
|
-
module NewRelic
|
6
|
-
autoload :MetricParser, 'new_relic/metric_parser'
|
7
|
-
module MetricParser
|
8
|
-
class ActiveMerchant < NewRelic::MetricParser::MetricParser
|
9
|
-
|
10
|
-
def is_active_merchant?; true; end
|
11
|
-
|
12
|
-
def is_active_merchant_gateway?
|
13
|
-
segments[1] == 'gateway'
|
14
|
-
end
|
15
|
-
|
16
|
-
def is_active_merchant_operation?
|
17
|
-
segments[1] == 'operation'
|
18
|
-
end
|
19
|
-
|
20
|
-
def gateway_name
|
21
|
-
# ends in "Gateway" - trim that off
|
22
|
-
segments[2][0..-8].titleize
|
23
|
-
end
|
24
|
-
|
25
|
-
def operation_name
|
26
|
-
segments[2]
|
27
|
-
end
|
28
|
-
|
29
|
-
def short_name
|
30
|
-
segments[2]
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|