From 0ba5f9a4343fabb8f571476637d2eef1a90fdfe6 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 8 Sep 2015 17:42:09 +0200 Subject: [PATCH] configures newrelic --- Gemfile | 1 + Gemfile.lock | 2 ++ config/newrelic.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 config/newrelic.yml diff --git a/Gemfile b/Gemfile index 6913ddb52..525d238fd 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/Gemfile.lock b/Gemfile.lock index 7d5ebee59..7da5c9fe2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/config/newrelic.yml b/config/newrelic.yml new file mode 100644 index 000000000..bd6f54386 --- /dev/null +++ b/config/newrelic.yml @@ -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