Skip to content

Commit

Permalink
Added new relic and raygun
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Jun 15, 2015
1 parent 7e7137a commit 6e8c148
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ gem "nokogiri", "~> 1.6"

gem "rails_12factor"

gem 'raygun4ruby'
gem 'newrelic_rpm'

group :development, :test do
gem 'byebug'
gem 'spring'
Expand Down
11 changes: 11 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ GEM
multipart-post (>= 1.2, < 3)
globalid (0.3.5)
activesupport (>= 4.1.0)
httparty (0.13.3)
json (~> 1.8)
multi_xml (>= 0.5.2)
i18n (0.7.0)
ice_nine (0.11.1)
json (1.8.3)
Expand All @@ -88,7 +91,9 @@ GEM
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.7.0)
multi_xml (0.5.5)
multipart-post (2.0.0)
newrelic_rpm (3.11.2.286)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
octokit (3.8.0)
Expand Down Expand Up @@ -135,6 +140,10 @@ GEM
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
raygun4ruby (1.1.5)
httparty (~> 0.11)
json
rack
redcarpet (3.2.3)
rspec-core (3.3.0)
rspec-support (~> 3.3.0)
Expand Down Expand Up @@ -201,13 +210,15 @@ DEPENDENCIES
better_errors
binding_of_caller
byebug
newrelic_rpm
nokogiri (~> 1.6)
octokit (~> 3.8.0)
pg (~> 0.18.2)
puma (~> 2.11.3)
pygments.rb (~> 0.6.3)
rails (= 4.2.1)
rails_12factor
raygun4ruby
redcarpet (~> 3.2.3)
rspec-rails (~> 3.0)
sass-rails!
Expand Down
7 changes: 7 additions & 0 deletions config/initializers/raygun.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Raygun.setup do |config|
config.api_key = ENV['RAYGUN_APIKEY']
config.filter_parameters = Rails.application.config.filter_parameters

# The default is Rails.env.production?
# config.enable_reporting = !Rails.env.development? && !Rails.env.test?
end
49 changes: 49 additions & 0 deletions 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 June 15, 2015
#
# This configuration file is custom generated for [email protected]
#
# 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: 89877a23533515785deafc97c6954b616576fd6e

# 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: DocumentUp

# 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: DocumentUp (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: DocumentUp (Staging)

production:
<<: *default_settings

0 comments on commit 6e8c148

Please sign in to comment.