###前提・実現したいこと
開発中のアプリケーションで、New Relicを導入したいと考えています。
公式のドキュメンテーションを見てもうまく動作せず、ご教授願いたく思います。
###発生している問題・エラーメッセージ
Gemfileにgem 'newrelic_rpm'
を追加し、
ダウンロードしてきたconfig/newrelic.config
を配置してwebrickを再起動してもうまく動作しません。
###該当のソースコード
ruby
1 2newrelic.config 3# 4# This file configures the New Relic Agent. New Relic monitors Ruby, Java, 5# .NET, PHP, Python and Node applications with deep visibility and low 6# overhead. For more information, visit www.newrelic.com. 7# 8# Generated July 24, 2017 9# 10# This configuration file is custom generated for welks inc 11# 12# For full documentation of agent configuration options, please refer to 13# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration 14 15common: &default_settings 16 # Required license key associated with your New Relic account. 17 license_key: ff17bd16f54d968240c1f4ec160d891e00a97083 18 19 # Your application name. Renaming here affects where data displays in New 20 # Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications 21 app_name: my_app 22 23 # To disable the agent regardless of other settings, uncomment the following: 24 # agent_enabled: false 25 26 # Logging level for log/newrelic_agent.log 27 log_level: info 28 29 30# Environment-specific settings are in this section. 31# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment. 32# If your application has other named environments, configure them here. 33development: 34 <<: *default_settings 35 app_name: my_app (Development) 36 37test: 38 <<: *default_settings 39 # It doesn't make sense to report to New Relic from automated test runs. 40 monitor_mode: false 41 42staging: 43 <<: *default_settings 44 app_name: my_app (Staging) 45 46production: 47 <<: *default_settings 48
どううまく動作していないのでしょうか? エラーが発生している場合はその内容を追記してみましょう
あなたの回答
tips
プレビュー