Skip to content

Commit

Permalink
Merge pull request #33 from MITLibraries/new_relic
Browse files Browse the repository at this point in the history
Adds new relic config
  • Loading branch information
JPrevost committed Sep 27, 2016
2 parents c833605 + a985210 commit 408ce93
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ gem 'uglifier', '>= 1.3.0'
group :production do
gem 'dalli'
gem 'memcachier'
gem 'newrelic_rpm'
gem 'pg'
gem 'rails_12factor'
end
Expand Down
10 changes: 6 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ GEM
bcrypt (3.1.11)
builder (3.2.2)
byebug (9.0.5)
capybara (2.9.0)
capybara (2.9.1)
addressable
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
Expand Down Expand Up @@ -143,7 +143,7 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.9.0)
minitest (5.9.1)
minitest-capybara (0.8.2)
capybara (~> 2.2)
minitest (~> 5.0)
Expand All @@ -166,6 +166,7 @@ GEM
multi_json (1.12.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
newrelic_rpm (3.16.2.321)
nio4r (1.2.1)
nokogiri (1.6.8)
mini_portile2 (~> 2.1.0)
Expand Down Expand Up @@ -231,7 +232,7 @@ GEM
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
retriable (2.1.0)
rollbar (2.13.1)
rollbar (2.13.2)
multi_json
rubocop (0.43.0)
parser (>= 2.3.1.1, < 3.0)
Expand Down Expand Up @@ -259,7 +260,7 @@ GEM
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.11)
term-ansicolor (1.3.2)
term-ansicolor (1.4.0)
tins (~> 1.0)
therubyracer (0.12.2)
libv8 (~> 3.16.14.0)
Expand Down Expand Up @@ -318,6 +319,7 @@ DEPENDENCIES
minitest-rails
minitest-rails-capybara
minitest-reporters
newrelic_rpm
omniauth-mit-oauth2
omniauth-oauth2
pg
Expand Down
49 changes: 49 additions & 0 deletions config/newrelic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#
# This file configures the New Relic Agent. New Relic monitors Ruby, Java,
# .NET, PHP, Python and Node applications with deep visibility and low
# overhead. For more information, visit www.newrelic.com.
#
# Generated September 27, 2016
#
# This configuration file is custom generated for app53684319@heroku.com
#
# For full documentation of agent configuration options, please refer to
# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration

common: &default_settings
# Required license key associated with your New Relic account.
license_key: <%= ENV['NEW_RELIC_LICENSE_KEY'] %>

# Your application name. Renaming here affects where data displays in New
# Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
app_name: MIT Bento (<%= ENV['HEROKU_ENV'] %>)

# To disable the agent regardless of other settings, uncomment the following:
# agent_enabled: false

# Logging level for log/newrelic_agent.log
log_level: info


# Environment-specific settings are in this section.
# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment.
# If your application has other named environments, configure them here.
development:
<<: *default_settings
app_name: MIT Bento (Development)

# NOTE: There is substantial overhead when running in developer mode.
# Do not use for production or load testing.
developer_mode: true

test:
<<: *default_settings
# It doesn't make sense to report to New Relic from automated test runs.
monitor_mode: false

staging:
<<: *default_settings
app_name: MIT Bento (Staging)

production:
<<: *default_settings

0 comments on commit 408ce93

Please sign in to comment.