Add New Relic

This commit is contained in:
Georg Gadinger 2017-06-17 22:49:19 +02:00
parent 5b7b680b01
commit 90fc9dae3a
4 changed files with 50 additions and 1 deletions

View file

@ -49,6 +49,7 @@ gem 'ruby-progressbar'
gem 'rails_admin'
gem 'pghero'
gem 'newrelic_rpm'
gem 'sidekiq'
gem 'sinatra', require: false

View file

@ -372,6 +372,7 @@ GEM
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (4.1.0)
newrelic_rpm (4.2.0.334)
nokogiri (1.7.1)
mini_portile2 (~> 2.1.0)
nokogumbo (1.4.10)
@ -651,6 +652,7 @@ DEPENDENCIES
jquery-turbolinks
letter_opener
momentjs-rails (>= 2.9.0)
newrelic_rpm
nprogress-rails
omniauth
omniauth-tumblr

View file

@ -21,7 +21,8 @@ set :deploy_to, "/usr/home/justask/apps/retrospring"
# set :pty, true
# Default value for :linked_files is []
append :linked_files, "config/database.yml", "config/justask.yml", "config/secrets.yml", "config/unicorn.rb", "config/initializers/devise.rb"
append :linked_files, "config/database.yml", "config/justask.yml", "config/secrets.yml", "config/unicorn.rb",
"config/newrelic.yml", "config/initializers/devise.rb"
# Default value for linked_dirs is []
append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uploads", "public/system", "public/exports"

45
config/newrelic.yml Normal file
View file

@ -0,0 +1,45 @@
#
# 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 17, 2017
#
# This configuration file is custom generated for Retrospring
#
# 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: CHANGEME
# 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: Retrospring
# 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: Retrospring (Development)
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: Retrospring (Staging)
production:
<<: *default_settings