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

I use Newrelic to monitor the status of my rail. They ping (GET request, I think) our application every 5 minutes. Do you know how to prevent rails from spawning a new user session for every request they make?

+6
source share
3 answers

Other good answers are already here, but the pinger is fully documented here: https://newrelic.com/docs/alerts/availability-monitoring

0
source

Ask ping for something that exists in the public directory.

This will not be checked to make sure your application is running, but only that the server is running. Assuming the server is turned on, your application should be able to throw exceptions, and New Relic will catch them.

In the new Rails application, you can use ping http://rooturl/images/rails.png , since by default png is in public/images/ .

+3
source

It seems that I recall a recent work specifically for this use case - you can contact New Relic support and see if it has been recently reviewed.

+1
source

Source: https://habr.com/ru/post/907172/


All Articles