Skip to content

Instantly share code, notes, and snippets.

@wrburgess
Created March 19, 2012 00:20

Revisions

  1. wrburgess revised this gist Mar 19, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    * [Heroku](http://www.heroku.com)
    * [NewRelic on Heroku](http://devcenter.heroku.com/articles/newrelic)

    ## commands
    ## instructions

    In terminal: <pre>heroku addons:add newrelic:standard</pre>

  2. wrburgess revised this gist Mar 19, 2012. No changes.
  3. wrburgess revised this gist Mar 19, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -38,3 +38,5 @@ configure :production do
    require 'newrelic_rpm'
    end
    </pre>

    Terminal command: <pre>heroku config:add RACK_ENV=production</pre>
  4. wrburgess revised this gist Mar 19, 2012. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -20,9 +20,9 @@ Create config/newrelic.yml with this script:
    apdex_t: 0.5
    ssl: false
    monitor_mode: true
    license_key: <%= ENV["NEW_RELIC_LICENSE_KEY"] %>
    license_key: &lt;%= ENV["NEW_RELIC_LICENSE_KEY"] %&gt;
    developer_mode: false
    app_name: <%= ENV["NEW_RELIC_APP_NAME"] %>
    app_name: &lt;%= ENV["NEW_RELIC_APP_NAME"] %&gt;
    transaction_tracer:
    record_sql: obfuscated
    enabled: true
    @@ -38,4 +38,3 @@ configure :production do
    require 'newrelic_rpm'
    end
    </pre>

  5. wrburgess revised this gist Mar 19, 2012. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ Add this gem to your Gemfile: <pre>gem 'newrelic_rpm'</pre>
    Create config/newrelic.yml with this script:
    <pre>
    ---
    <%= ENV["RACK_ENV"] %>:
    &lt;%= ENV["RACK_ENV"] %&gt;:
    error_collector:
    capture_source: true
    enabled: true
    @@ -30,4 +30,12 @@ Create config/newrelic.yml with this script:
    transaction_threshold: apdex_f
    capture_params: false
    log_level: info
    </pre>
    </pre>

    Add to your root .rb file:
    <pre>
    configure :production do
    require 'newrelic_rpm'
    end
    </pre>

  6. wrburgess revised this gist Mar 19, 2012. 1 changed file with 22 additions and 0 deletions.
    22 changes: 22 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -9,3 +9,25 @@ In terminal: <pre>heroku addons:add newrelic:standard</pre>

    Add this gem to your Gemfile: <pre>gem 'newrelic_rpm'</pre>

    Create config/newrelic.yml with this script:
    <pre>
    ---
    <%= 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
    </pre>
  7. wrburgess created this gist Mar 19, 2012.
    11 changes: 11 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ## references
    * [NewRelic](http://newrelic.com)
    * [Heroku](http://www.heroku.com)
    * [NewRelic on Heroku](http://devcenter.heroku.com/articles/newrelic)

    ## commands

    In terminal: <pre>heroku addons:add newrelic:standard</pre>

    Add this gem to your Gemfile: <pre>gem 'newrelic_rpm'</pre>