Skip to content

Commit

Permalink
add new relic
Browse files Browse the repository at this point in the history
  • Loading branch information
oiahoon committed Dec 5, 2017
1 parent 75fb4c0 commit 7a9fe77
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
4 changes: 3 additions & 1 deletion poker/Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# source 'https://rubygems.org'
source 'https://ruby.taobao.org'
source 'https://gems.ruby-china.org/'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '>= 5.0.0.rc1', '< 5.1'
Expand Down Expand Up @@ -59,6 +59,8 @@ gem 'active_model_serializers', '~> 0.10.4'
gem 'chartjs-ror'
gem 'identicon'

gem 'newrelic_rpm'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
Expand Down
4 changes: 3 additions & 1 deletion poker/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GEM
remote: https://ruby.taobao.org/
remote: https://gems.ruby-china.org/
specs:
actioncable (5.0.2)
actionpack (= 5.0.2)
Expand Down Expand Up @@ -94,6 +94,7 @@ GEM
minitest (5.10.1)
multi_json (1.12.1)
mysql2 (0.4.5)
newrelic_rpm (4.6.0.338)
nio4r (2.0.0)
nokogiri (1.7.1)
mini_portile2 (~> 2.1.0)
Expand Down Expand Up @@ -195,6 +196,7 @@ DEPENDENCIES
jbuilder (~> 2.0)
listen
mysql2
newrelic_rpm
puma
rails (>= 5.0.0.rc1, < 5.1)
react-rails (~> 1.5.0)
Expand Down
45 changes: 45 additions & 0 deletions poker/config/newrelic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#
# 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 November 30, 2017
#
# This configuration file is custom generated for Virtual Race Bags
#
# 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: 7e44cb8d5d5c0047dfa251d3055a7ce583057c82

# 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: Poker

# 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: Poker (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: Poker (Staging)

production:
<<: *default_settings

0 comments on commit 7a9fe77

Please sign in to comment.