From cce26f413c872d1e90513945d08c488e44bcc1dc Mon Sep 17 00:00:00 2001 From: the38th Date: Mon, 14 Jun 2021 05:06:06 -0700 Subject: [PATCH 1/2] newrelic gem installed --- Gemfile | 3 ++- Gemfile.lock | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index d616fc5..90398b9 100644 --- a/Gemfile +++ b/Gemfile @@ -64,4 +64,5 @@ gem 'responders' gem 'active_model_serializers' gem 'webpacker-react', '~> 0.3.2' gem 'js-routes' -gem 'rollbar' \ No newline at end of file +gem 'rollbar' +gem 'newrelic_rpm' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 4979a03..0b9471a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -140,6 +140,7 @@ GEM mini_portile2 (2.4.0) minitest (5.14.2) msgpack (1.3.3) + newrelic_rpm (7.1.0) nio4r (2.5.4) nokogiri (1.10.10) mini_portile2 (~> 2.4.0) @@ -293,6 +294,7 @@ DEPENDENCIES js-routes kaminari listen (~> 3.2) + newrelic_rpm pg (>= 0.18, < 2.0) puma (~> 4.1) rails (~> 6.0.3, >= 6.0.3.4) From 1374039e57453a2fc386f62902880400ea20479a Mon Sep 17 00:00:00 2001 From: the38th Date: Mon, 14 Jun 2021 05:29:50 -0700 Subject: [PATCH 2/2] newrelic config file created --- config/newrelic.yml | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 config/newrelic.yml diff --git a/config/newrelic.yml b/config/newrelic.yml new file mode 100755 index 0000000..e534184 --- /dev/null +++ b/config/newrelic.yml @@ -0,0 +1,48 @@ +# +# This file configures the New Relic Agent. New Relic monitors Ruby, Java, +# .NET, PHP, Python, Node, and Go applications with deep visibility and low +# overhead. For more information, visit www.newrelic.com. +# +# Generated June 14, 2021 +# +# This configuration file is custom generated for NewRelic Administration +# +# 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: eu01xx6e2963f04b83546c93587f4b302c77NRAL + + # 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: TaskManager + + distributed_tracing: + enabled: true + + # 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: TaskManager (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: TaskManager (Staging) + +production: + <<: *default_settings