i need to check the performance of my rails application. i installed newrelic_rpm. In environment.rb , the following added:
config.gem "newrelic_rpm"
then, in browser i gave:
http://localhost:3000/newrelic
then, it shows the error message as below:
Routing Error No route matches "/newrelic" with {:method=>:get}
Can you please help me to solve this..
Thanks in advance...
I'm guessing my issue is related to running thin (and other processes) through foreman in development. I added the following to get the routing and monitoring working:
config/environments/development.rb
require 'new_relic/rack/developer_mode'
config.middleware.use NewRelic::Rack::DeveloperMode
ENV['NEWRELIC_ENABLE'] = 'true'
Setting ENV['NEWRELIC_ENABLE'] = 'true'
may monitor stuff when you would rather it didn't (rake tasks etc...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With