• /
  • EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Add, rename, and remove hosts

You can add and remove hosts for your applications. You cannot rename an existing host, but you can create applications named after a host or cluster. You can also assign a cosmetic label to the host, to differentiate hosts without changing the underlying hostname setting.

Add hosts

To add a host for monitoring, install the agent and start up your application. The host running the application will be identified to New Relic and will automatically appear on the site after a few minutes.

Rename hosts

It is not possible to change the hostname. However, you can create applications named after a host or cluster. For example, if hosts ey01-s00057 and ey01-s00058 are both part of a production tier, you can create an application called App - Production and have those two hosts report to it.

Change display name of hosts

You can also assign a display name to a host, to easily distinguish dynamically assigned hosts. This display name does not affect the link between an app and its parent host. The display name appears in the APM UI to decorate the automatically assigned host:port name.

In the following example, QA Server and Local Dev Server are display names:

crop-cosmetic-label-hostname.png

To set a display name:

New Relic agent

Set the host display name

Go

Edit the Go agent HostDisplayName configuration setting.

Java

Edit your config file or environment variables. However, if the Java agent detects an instance name, APM uses that name instead of the display name.

.NET

Edit displayName attribute in the processHost element of the .NET agent config file or environment variables.

Node.js

Edit display_name in the process_host section of your config file.

PHP

Edit process_host.display_name in your newrelic.ini file.

Python

Edit process_host.display_name in your config file.

Ruby

Edit process_host.display_name in your config file.

Remove hosts

To remove a host, use either option:

  • Uninstall the agent.
  • Disable it by editing or removing the agent configuration file. Make sure that all application host instances (Passenger, Jetty, etc.) have been fully restarted after disabling the agent.

Occasionally, rogue application server processes will continue reporting data. In this situation your app's health status indicator will appear green, even though you shut the agent down and verified that no data is reporting. Check your web server for stray processes, or get support at support.newrelic.com.

Once you've uninstalled an APM agent from a host instance, it may take up to 75 minutes for the old host to disappear from the APM view. If you've removed a host by uninstalling the infrastructure agent, it may take up to 24 hours for it to disappear.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.