NewRelic.Azure.WebSites.Extension.NodeAgent 12.5.2

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package NewRelic.Azure.WebSites.Extension.NodeAgent --version 12.5.2                
NuGet\Install-Package NewRelic.Azure.WebSites.Extension.NodeAgent -Version 12.5.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NewRelic.Azure.WebSites.Extension.NodeAgent" Version="12.5.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NewRelic.Azure.WebSites.Extension.NodeAgent --version 12.5.2                
#r "nuget: NewRelic.Azure.WebSites.Extension.NodeAgent, 12.5.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NewRelic.Azure.WebSites.Extension.NodeAgent as a Cake Addin
#addin nuget:?package=NewRelic.Azure.WebSites.Extension.NodeAgent&version=12.5.2

// Install NewRelic.Azure.WebSites.Extension.NodeAgent as a Cake Tool
#tool nuget:?package=NewRelic.Azure.WebSites.Extension.NodeAgent&version=12.5.2                

Azure Node Agent Site Extension

This project creates an Azure site extension that automatically installs the New Relic Node Agent. This extension is designed for Node applications running on Azure Windows compute resources. The site extensions follow semantic versioning conventions. You can expect to find artifacts in Nuget.

Installation

Applying the site extension will install the New Relic Node agent.

From the Azure Home page, do the following:

  • Click the App Services tile
  • Click the name of the target application in the displayed list
  • On the options listed on the left, scroll down to "Extensions" located under the Development Tools category
  • Click on + Add at the top of the page
  • From the extension drop down, select New Relic Node Agent.
  • Check the box for accepting the legal terms
  • Click Add on the bottom of the page. This will begin installation of the extension.

Once installed, the extension creates the following artifacts:

  • Folder: C:\home\SiteExtensions\NewRelic.Azure.Websites.Extension.NodeAgent
  • XDT: applicationHost.xdt that will add the necessary NODE_OPTIONS environment variable on application startup
  • The New Relic Node agent and dependencies will be installed into C:\home\site\wwwroot\node_modules

If the extension fails to install, a log file is created at C:\home\SiteExtensions\NewRelic.Azure.Websites.Extension.NodeAgent\install.log.

If the New Relic agent has been installed successfully and logging has been enabled, the agent will append its logs to a file at C:\home\site\wwwroot\newrelic_agent.log.

Compatibility note:

For applications running on Win 32, full Code Level Metrics support (file path, line, column) is not available, and profiling will fall back to function name only.

Configuration

The New Relic Node agent is configured with the newrelic.js file, or via environment variables. See our documentation for more detailed configuration.

Once the site extension is installed, you'll need to manually enter one configuration item before restarting your application.

  • On the options listed on the left, scroll down to "Environment variables" located under the "Settings" category and add the following:
    • NEW_RELIC_LICENSE_KEY - Your New Relic license key value

The Node agent automatically adds the NODE_OPTIONS environment variable with a value of -r newrelic which starts the agent.

  • Note: Any previously NODE_OPTIONS will be removed and reset with -r newrelic.

Extension Source Files

Below is a description of the files that make up the extension. This can be helpful for future maintenance on the extension or for the creation of another Site Extension.

  • README.md - This file
  • NewRelic.Azure.WebSites.Extension.NodeAgent.nuspec - Contains the metadata about the target extension: Name, authors, copyright, etc. Nuspec Format
  • Content/applicationHost.xdt - XDT transformation to add the necessary agent startup environment variable to the app config when the app starts up
  • Content/install.cmd - Simple batch file that wraps a call to the Powershell install.ps1 script
  • Content/install.ps1 - Powershell script that moves/installs the agent bundle to the proper location on the host
  • Content/uninstall.cmd - Simple batch file that will remove the Node installation artifacts when the extension is removed

Note: We recommend installing or removing this Azure site extension while your web application is stopped.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
12.8.0 89 11/19/2024
12.7.0 94 11/11/2024
12.6.1 90 11/7/2024
12.6.0 90 10/30/2024
12.5.2 91 10/23/2024
12.5.1 102 9/25/2024
12.5.0 103 9/12/2024
12.4.0 100 9/12/2024
12.3.1 105 9/10/2024