Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude NewRelic RPM pinger from creating useless sessions in database

I'm using Newrelic for monitoring my rails app status. They ping (GET request I think) our app every 5 minutes. Do you know how to prevent rails from spawning new user session for every request they are making?

like image 633
Johny Avatar asked Jan 29 '12 19:01

Johny


2 Answers

Have it ping something that exists in the public directory.

This won't check to make sure that your app is running, but just that the server is up. Assuming the server is up, then your app should be able to create exceptions and New Relic will catch those.

On a new Rails app, for instance, you could have it ping http://rooturl/images/rails.png as that png is in public/images/ by default.

like image 177
Matthew Lehner Avatar answered Nov 11 '22 10:11

Matthew Lehner


I seem to recall some recent work for specifically this use case -- you might contact New Relic support and see if this has been addressed recently.

like image 36
Jade Avatar answered Nov 11 '22 11:11

Jade