2

我已经用 goliath 配置了 New Relic,如此处所述

我正在使用gem 'newrelic_rpm',但没有获得 newrelic 服务的统计信息。

4

1 回答 1

0

我们必须在应用程序的开头添加手动启动

NewRelic::Agent.manual_start({:env => Goliath.env.to_s})
class NewrelicStatsExample < Goliath::API
  # Stuff ...

手动启动中有一个错误,刚刚用最新的 gem 修复。

还要确保针对您在newrelic.yml文件中测试的环境将 monitor_mode 设置为 true:

production:
  <<: *default_settings
  app_name: New Relic Example App (Production)
  monitor_mode: true                                                                                             
于 2013-02-06T18:34:17.097 回答