2

I have configured New Relic with goliath as explained here

I am using gem 'newrelic_rpm', but not getting stats at newrelic service.

Raghvendra Parashar
  • 3,883
  • 1
  • 23
  • 36

1 Answers1

0

We had to add a manual start at the beginning of our app

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

There was a bug in the manual start that was just fixed with the most recent gem.

Also make sure the monitor_mode is set to true for the environment you are testing in the newrelic.yml file:

production:
  <<: *default_settings
  app_name: New Relic Example App (Production)
  monitor_mode: true                                                                                             
codingFoo
  • 916
  • 12
  • 23
  • Thanks to look into problem, I am interacting with models inside `def response(env)`, having models in other directory, I am including them(models) in current class, and when I have removed model interaction then stats are going fine on newrelic, I have tested in development mode, I don't know what's the problem, @codingFoo Have you any idea about this? – Raghvendra Parashar Feb 09 '13 at 11:20
  • Maybe the models are changing the middleware chain or they are messing with the list of traces somehow. Order matters in the middleware chain so I would start looking there. – codingFoo Feb 20 '13 at 21:51
  • I am having models in other directory and requires them in action file, is here something wrong? – Raghvendra Parashar Mar 02 '13 at 06:06
  • It is not having them in another directory and requiring them, but maybe something that the models are doing. Maybe one of your models is changing something, try requiring them one at time. Do all the models cause the problem or is it just one model? – codingFoo Mar 02 '13 at 18:51