Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@newrelic/native-metrics

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newrelic/native-metrics

A module for generating metrics from V8.

  • 11.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
864K
increased by11%
Maintainers
1
Weekly downloads
 
Created

What is @newrelic/native-metrics?

@newrelic/native-metrics is an npm package that provides native bindings to collect system and process metrics for Node.js applications. It is designed to work with New Relic's monitoring tools to provide detailed insights into the performance and health of your Node.js applications.

What are @newrelic/native-metrics's main functionalities?

Collecting GC Metrics

This feature allows you to collect garbage collection (GC) metrics. The code sample demonstrates how to set up an event listener for GC events, which logs information about each GC event.

const nativeMetrics = require('@newrelic/native-metrics')();
nativeMetrics.on('gc', (gc) => {
  console.log('Garbage collection occurred:', gc);
});

Collecting Event Loop Metrics

This feature allows you to collect event loop metrics. The code sample shows how to set up an event listener for event loop metrics, which logs information about the event loop.

const nativeMetrics = require('@newrelic/native-metrics')();
nativeMetrics.on('loop', (loop) => {
  console.log('Event loop metrics:', loop);
});

Collecting System Metrics

This feature allows you to collect system-level metrics such as CPU and memory usage. The code sample demonstrates how to set up an event listener for system metrics, which logs information about the system's performance.

const nativeMetrics = require('@newrelic/native-metrics')();
nativeMetrics.on('system', (system) => {
  console.log('System metrics:', system);
});

Other packages similar to @newrelic/native-metrics

Keywords

FAQs

Package last updated on 31 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc