Merge pull request #435 from AyuntamientoMadrid/newrelic

configures newrelic
This commit is contained in:
Enrique García
2015-09-08 17:59:52 +02:00
3 changed files with 50 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ gem 'rollbar', '~> 2.2.1'
gem 'delayed_job_active_record'
gem 'daemons'
gem 'devise-async'
gem 'newrelic_rpm'
gem 'ahoy_matey', '~> 1.2.1'
gem 'groupdate' # group temporary data

View File

@@ -218,6 +218,7 @@ GEM
net-ssh (>= 2.6.5)
net-ssh (2.9.2)
netrc (0.10.3)
newrelic_rpm (3.13.0.299)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
nori (2.6.0)
@@ -432,6 +433,7 @@ DEPENDENCIES
kaminari
launchy
letter_opener_web (~> 1.3.0)
newrelic_rpm
omniauth
omniauth-facebook
omniauth-google-oauth2

47
config/newrelic.yml Normal file
View File

@@ -0,0 +1,47 @@
#
# 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 08, 2015, for version 3.13.0.299
#
# 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: <%= Rails.application.secrets.newrelic_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: Participacion
# 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: Participacion (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: Participacion (Staging)
production:
<<: *default_settings