Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7651349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:29:00+00:00 2026-05-31T11:29:00+00:00

Our medium-sized rails app runs (in production) on three servers. We’ve just finished a

  • 0

Our medium-sized rails app runs (in production) on three servers. We’ve just finished a trial period, using New Relic as a gem. During the trial period we tracked all three servers, but to continue with a subscription we only need (and only have the budget) to track app1.

So we need to disable new relic on app2 and app3. In communication with their customer service I’m told this is possible and have been directed to the last entry on this page but I can’t quite figure out how this helps me to disable new relic tracking on the other two servers, in particular because there’s no newrelic_rpm mentioned in environment.rb – it’s a gem, after all, and is therefore only mentioned in the Gemfile.

There is a agent_enabled boolean option in newrelic.yml which I thought we could set on a per-server basis, but I don’t know how to do this. Is there a way to find out which server we’re on in rails, similar to the RAILS_ENV variable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:29:02+00:00Added an answer on May 31, 2026 at 11:29 am

    The newrelic.yml file is rendered with ERB before the agent reads the config values. So you can do this:

    monitor_mode: <%= 'app1' == Socket.gethostname ? 'true' : 'false' %>
    

    That will enable the agent reporting to New Relic only for that one host.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A medium sized rails app that our company has been working on is getting
In our project (which is fully developed using .NET), we use a medium sized
We have a medium sized ColdFusion code base for our Intranet and Website. For
I'm currently maintaining a small-medium sized java web application (using only plain JSPs/Servlets) that
I'd like to implement a POP3-mailbox processing component for our medium-sized consumer website. Our
Our company is using ClearCase for version control and as a medium to exchange
We have a medium sized .js file that we include in our web framework
Recently our Web hosting provider moved to a medium trust level for all shared
I struggle with finding a good medium on communication. In our jobs, it seems
Our web app uses SystemPropertyPlaceholder to load property files depending on the value of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.