Skip to content

Commit

Permalink
Add New Relic APM.
Browse files Browse the repository at this point in the history
  • Loading branch information
Avdi Grimm committed Mar 27, 2012
1 parent fcdd60f commit df4fa86
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ gem "erector", '= 0.9.0.pre1'
gem 'anjlab-bootstrap-rails', '~> 2.0', :require => 'bootstrap-rails' gem 'anjlab-bootstrap-rails', '~> 2.0', :require => 'bootstrap-rails'
gem 'fattr' gem 'fattr'
gem 'rack_clicky' gem 'rack_clicky'
gem 'newrelic_rpm'


group :development do group :development do
gem "passenger" gem "passenger"
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ GEM
treetop (~> 1.4.8) treetop (~> 1.4.8)
mime-types (1.18) mime-types (1.18)
multi_json (1.0.4) multi_json (1.0.4)
newrelic_rpm (3.3.0)
passenger (3.0.11) passenger (3.0.11)
daemon_controller (>= 0.2.5) daemon_controller (>= 0.2.5)
fastthread (>= 1.0.1) fastthread (>= 1.0.1)
Expand Down Expand Up @@ -213,6 +214,7 @@ DEPENDENCIES
guard-passenger guard-passenger
guard-rspec guard-rspec
jquery-rails jquery-rails
newrelic_rpm
passenger passenger
rack-test rack-test
rack_clicky rack_clicky
Expand Down
19 changes: 19 additions & 0 deletions config/newrelic.yml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,19 @@
---
<%= ENV["RACK_ENV"] %>:
error_collector:
capture_source: true
enabled: true
ignore_errors: ActionController::RoutingError
apdex_t: 0.5
ssl: false
monitor_mode: true
license_key: <%= ENV["NEW_RELIC_LICENSE_KEY"] %>
developer_mode: false
app_name: <%= ENV["NEW_RELIC_APP_NAME"] %>
transaction_tracer:
record_sql: obfuscated
enabled: true
stack_trace_threshold: 0.5
transaction_threshold: apdex_f
capture_params: false
log_level: info

0 comments on commit df4fa86

Please sign in to comment.