• /
  • EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Introduction to New Relic for Node.js

Pinpoint and solve issues down to the line of code with Node.js monitoring from New Relic. With features like service maps, errors inbox, logs in context, and more, our Node.js agent helps you get the full picture of your app environment.

Why it matters

Many Node.js application requests are based on raw URLs. Our solution is different. New Relic for Node.js assumes it can group requests to your application into transactions instead of HTTP requests. Transactions are defined by giving one or more request paths a name. These names are used to:

  • Visualize where your app is spending its time (in transaction breakdowns).
  • Identify slow requests.
  • Group metrics.
  • Show you which portions of your application are suffering from slow database performance.

Installation

To install our agent, you need to sign up for New Relic first. Once you're logged in, follow the instructions or use our launcher to get data flowing in.

Extend your instrumentation

After installing the Node.js agent, extend your instrumentation:

The Node.js agent auto-instruments many different 3rd party packages. However there are two other modules that are needed if you want telemetry for Apollo Server and Next.js.

Extend your instrumentation

Comments

Customization

Extend Instrumentation

VM measurements

End-user activity

View logs for your APM and infrastructure data

You can also bring your logs and application's data together to make troubleshooting easier and faster. With APM logs in context, you can see log messages related to your errors and traces directly in your app's UI. You can also see logs in context of your infrastructure data, such as Kubernetes clusters. No need to switch to another UI page in New Relic.

Troubleshoot your installation

If you encounter issues with your Node.js agent, see our troubleshooting docs. Some of the most important troubleshooting docs in that section include:

If you need more help, get support at support.newrelic.com.

Check the source code

Our Node.js agent is open source software. You can browse the source code and send improvements, or create your own fork and build it. For more information, see the node-newrelic README on GitHub.

Copyright © 2024 New Relic Inc.

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