This document contains instructions for installing New Relic's .NET agent to monitor an ASP.NET Core application. These are additional caveats and instructions that supplement the standard installation procedures for Windows and Linux.
New Relic automatically instruments ASP.NET Core apps targeting .NET Core that are hosted in IIS.
For applications not using IIS, follow the standard installation procedures for Windows or Linux as applicable. In addition, you must enable the agent for your application and, if monitoring doesn't happen automatically, set up custom instrumentation:
- Enabling your app: See instructions for Windows and for Linux.
- Custom instrumentation: If you're not using Kestrel, or if instrumentation doesn't happen by default for some other reason, you must custom instrument your app.
For applications not hosted in IIS, or for ASP.NET Core apps targeting .NET Framework, follow the standard installation procedure for Windows. In addition, you must follow these procedures to explicitly enable the .NET agent.