Skip to content

Commit cc280de

Browse files
D3vil0p3rleesharma
authored andcommitted
Add New Relic performance monitoring (#150)
- database.yml reverted and untracked - bundler version fix - comment fixes - heroku app.json new relic params fixed - fixed l310 and l313 indentation
1 parent 3f15ba4 commit cc280de

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ gem 'puma', '~> 3.7'
1717
gem 'sass-rails', '~> 5.0'
1818
# Use Uglifier as compressor for JavaScript assets
1919
gem 'uglifier', '>= 1.3.0'
20+
# New Relic integration for performance monitoring
21+
gem 'newrelic_rpm'
2022

2123
# A Ruby gem to load environment variables from `.env`.
2224
gem 'dotenv-rails'

Gemfile.lock

+2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ GEM
128128
multi_json (1.12.1)
129129
multi_xml (0.6.0)
130130
multipart-post (2.0.0)
131+
newrelic_rpm (4.5.0.337)
131132
nio4r (2.0.0)
132133
nokogiri (1.7.2)
133134
mini_portile2 (~> 2.1.0)
@@ -283,6 +284,7 @@ DEPENDENCIES
283284
jquery-rails (~> 4.3.1)
284285
launchy (~> 2.4.3)
285286
listen (>= 3.0.5, < 3.2)
287+
newrelic_rpm
286288
omniauth-amazon
287289
pg (~> 0.18)
288290
pry-rails

app.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"postdeploy": "bin/review_app_setup"
55
},
66
"env": {
7+
"NEW_RELIC_ENV": "review",
78
"ADMIN_AMAZON_EMAIL": {
89
"required": true
910
},

config/newrelic.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#
2+
# This file configures the New Relic Agent. New Relic monitors Ruby, Java,
3+
# .NET, PHP, Python and Node applications with deep visibility and low
4+
# overhead. For more information, visit www.newrelic.com.
5+
#
6+
# Generated October 21, 2017
7+
#
8+
# This configuration file is custom generated for HELL Labs
9+
#
10+
# For full documentation of agent configuration options, please refer to
11+
# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration
12+
13+
common: &default_settings
14+
# Required license key associated with your New Relic account.
15+
license_key: <%= ENV['NEW_RELIC_LICENSE_KEY'] %>
16+
17+
# Your application name. Renaming here affects where data displays in New
18+
# Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
19+
app_name: Project Playtime
20+
21+
# To disable the agent regardless of other settings, uncomment the following:
22+
# agent_enabled: false
23+
24+
# Logging level for log/newrelic_agent.log
25+
log_level: info
26+
27+
28+
# Environment-specific settings are in this section.
29+
# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment.
30+
# If your application has other named environments, configure them here.
31+
development:
32+
<<: *default_settings
33+
app_name: Project Playtime (Development)
34+
monitor_mode: false
35+
36+
test:
37+
<<: *default_settings
38+
monitor_mode: false
39+
40+
staging:
41+
<<: *default_settings
42+
app_name: Project Playtime (Staging)
43+
monitor_mode: true
44+
45+
production:
46+
<<: *default_settings
47+
app_name: Project Playtime (Production)
48+
monitor_mode: true

0 commit comments

Comments
 (0)