aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2015-05-27 16:53:34 +0200
committerAlban Peignier2015-05-27 16:54:33 +0200
commite39cdfecf4fc72a16be09b7188c8aebbb7073e9d (patch)
tree3b8b0dc267fc12b8a808f407580c41bdac836527
parent5d19b9fc098149e90916379acef1f2f51dbbefd4 (diff)
downloadchouette-core-e39cdfecf4fc72a16be09b7188c8aebbb7073e9d.tar.bz2
Add NewRelic gem
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.lock2
-rw-r--r--config/newrelic.yml46
3 files changed, 50 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 06492851e..1b735dbb7 100644
--- a/Gemfile
+++ b/Gemfile
@@ -125,6 +125,8 @@ gem 'rabl'
gem 'delayed_job_active_record'
gem 'apartment', "~> 1.0.0"
+gem 'newrelic_rpm'
+
group :development do
gem 'capistrano', '2.13.5'
gem 'capistrano-ext'
diff --git a/Gemfile.lock b/Gemfile.lock
index fe92cc89f..ca78259f5 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -246,6 +246,7 @@ GEM
net-ssh (2.9.2)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
+ newrelic_rpm (3.9.6.257)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
nokogiri (1.6.6.2-java)
@@ -499,6 +500,7 @@ DEPENDENCIES
map_layers (= 0.0.4)
meta_request
modernizr-rails (~> 2.0.6)
+ newrelic_rpm
ninoxe!
pg
poltergeist
diff --git a/config/newrelic.yml b/config/newrelic.yml
new file mode 100644
index 000000000..95df17b31
--- /dev/null
+++ b/config/newrelic.yml
@@ -0,0 +1,46 @@
+# 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 May 27, 2015
+#
+# 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: to_be_overridden
+
+ # 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: Chouette
+
+ # 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: Chouette (Development)
+
+ # NOTE: There is substantial overhead when running in developer mode.
+ # Do not use for production or load testing.
+ developer_mode: true
+ monitor_mode: false
+
+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: Chouette (Staging)
+
+production:
+ <<: *default_settings