This document explains how to install and enable New Relic's .NET agent on Linux for application performance monitoring.
The instructions in this document are for a standard .NET agent installation on Linux. However, some setups have specific install documentation that you should read first:
If you modify your
newrelic.config file, make sure it retains the default UTF-8 encoding. If your editor adds a BOM (Byte Order Mark) to the encoding, the agent will be unable to read the file and will not start up in Linux.
Security notice: Make sure that the location where you install the .NET agent is configured to prevent unauthorized access.
To install the .NET agent on a Linux system with a package manager:
Install the agent. These details are the same for all installations using a package manager:
- Install location:
- The file
newrelic-netcore20-agent-path.shis placed in
/etc/profile.d, and this will set the
CORECLR_NEWRELIC_HOMEenvironment variable on system start.
- The path to
- Install location:
Follow the instructions for your package manager:
Continue to step 2.
Use one of the following methods to set the environment variables that enable the agent and define your license key. For an ASP.NET Core app targeting .NET Core, use the environment variable method.
Continue to step 3.
After you finish enabling the .NET agent:
- Start or restart your application.
- Generate some traffic, then wait a few minutes for data to appear in the New Relic UI.
If no data appears for your application after a few minutes, follow the troubleshooting procedures. For an in-depth explanation of how to troubleshoot any problems with your .NET agent installation, see .NET agent install for .NET Core: a troubleshooting guide in New Relic's Explorers Hub.
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.