Skip to content

Commit

Permalink
Setup Newrelic
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Segret committed Feb 12, 2017
1 parent bd7fdd0 commit 95c6543
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ gem 'graphiql-rails'
gem 'graphql-formatter'
gem 'rack-cors'
gem 'rails_12factor'
gem 'newrelic_rpm'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ GEM
minitest (5.10.1)
multipart-post (2.0.0)
net-http-persistent (2.9.4)
newrelic_rpm (3.18.0.329)
nio4r (1.2.1)
nokogiri (1.7.0.1)
mini_portile2 (~> 2.1.0)
Expand Down Expand Up @@ -254,6 +255,7 @@ DEPENDENCIES
graphql
graphql-formatter
inherited_resources!
newrelic_rpm
optics-agent
pg
puma (~> 3.0)
Expand Down
49 changes: 49 additions & 0 deletions config/newrelic.yml
Original file line number Diff line number Diff line change
@@ -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 February 09, 2017
#
# This configuration file is custom generated for app57702606@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: 872fe674f71c666a88bb94b15fb8c657ea372a66

# 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: graphql-rails-blog

# 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: graphql-rails-blog (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: graphql-rails-blog (Staging)

production:
<<: *default_settings

0 comments on commit 95c6543

Please sign in to comment.