mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 02:04:57 +00:00
Add NewRelic for monitoring
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -26,6 +26,7 @@ gem 'devise'
|
|||||||
gem 'activeadmin', github: 'activeadmin'
|
gem 'activeadmin', github: 'activeadmin'
|
||||||
gem 'rollbar', '~> 2.5.0'
|
gem 'rollbar', '~> 2.5.0'
|
||||||
gem 'gcm'
|
gem 'gcm'
|
||||||
|
gem 'newrelic_rpm'
|
||||||
|
|
||||||
# Use ActiveModel has_secure_password
|
# Use ActiveModel has_secure_password
|
||||||
# gem 'bcrypt', '~> 3.1.7'
|
# gem 'bcrypt', '~> 3.1.7'
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ GEM
|
|||||||
minitest (5.8.1)
|
minitest (5.8.1)
|
||||||
multi_json (1.11.2)
|
multi_json (1.11.2)
|
||||||
multi_xml (0.5.5)
|
multi_xml (0.5.5)
|
||||||
|
newrelic_rpm (3.13.0.299)
|
||||||
nokogiri (1.6.6.2)
|
nokogiri (1.6.6.2)
|
||||||
mini_portile (~> 0.6.0)
|
mini_portile (~> 0.6.0)
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
@@ -256,6 +257,7 @@ DEPENDENCIES
|
|||||||
gcm
|
gcm
|
||||||
jbuilder (~> 2.0)
|
jbuilder (~> 2.0)
|
||||||
jquery-rails
|
jquery-rails
|
||||||
|
newrelic_rpm
|
||||||
pg
|
pg
|
||||||
rails (= 4.2.4)
|
rails (= 4.2.4)
|
||||||
rollbar (~> 2.5.0)
|
rollbar (~> 2.5.0)
|
||||||
|
|||||||
49
config/newrelic.yml
Normal file
49
config/newrelic.yml
Normal file
@@ -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 November 21, 2015
|
||||||
|
#
|
||||||
|
# This configuration file is custom generated for app42696810@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: 471bbba1fd6f669feaafed3f4505b13695671807
|
||||||
|
|
||||||
|
# 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: OneMDM
|
||||||
|
|
||||||
|
# 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: OneMDM (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: OneMDM (Staging)
|
||||||
|
|
||||||
|
production:
|
||||||
|
<<: *default_settings
|
||||||
Reference in New Issue
Block a user