From b881726a25f12b57631d20c09dce241bda299356 Mon Sep 17 00:00:00 2001 From: leenasn Date: Sat, 21 Nov 2015 22:46:20 +0530 Subject: [PATCH] Add NewRelic for monitoring --- Gemfile | 1 + Gemfile.lock | 2 ++ config/newrelic.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 config/newrelic.yml diff --git a/Gemfile b/Gemfile index ab9c5c0..8aaef71 100644 --- a/Gemfile +++ b/Gemfile @@ -26,6 +26,7 @@ gem 'devise' gem 'activeadmin', github: 'activeadmin' gem 'rollbar', '~> 2.5.0' gem 'gcm' +gem 'newrelic_rpm' # Use ActiveModel has_secure_password # gem 'bcrypt', '~> 3.1.7' diff --git a/Gemfile.lock b/Gemfile.lock index 75858cc..c9adc09 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -134,6 +134,7 @@ GEM minitest (5.8.1) multi_json (1.11.2) multi_xml (0.5.5) + newrelic_rpm (3.13.0.299) nokogiri (1.6.6.2) mini_portile (~> 0.6.0) orm_adapter (0.5.0) @@ -256,6 +257,7 @@ DEPENDENCIES gcm jbuilder (~> 2.0) jquery-rails + newrelic_rpm pg rails (= 4.2.4) rollbar (~> 2.5.0) diff --git a/config/newrelic.yml b/config/newrelic.yml new file mode 100644 index 0000000..32b2bf4 --- /dev/null +++ b/config/newrelic.yml @@ -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 November 21, 2015 +# +# This configuration file is custom generated for app42696810@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: 471bbba1fd6f669feaafed3f4505b13695671807 + + # 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: OneMDM + + # 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: OneMDM (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: OneMDM (Staging) + +production: + <<: *default_settings