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

@pm2/io

Package Overview
Dependencies
Maintainers
3
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pm2/io

PM2.io NodeJS APM

  • 4.2.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
decreased by-20.33%
Maintainers
3
Weekly downloads
 
Created

What is @pm2/io?

@pm2/io is a monitoring and metrics collection tool for Node.js applications. It provides real-time monitoring, custom metrics, and profiling capabilities to help developers understand the performance and behavior of their applications.

What are @pm2/io's main functionalities?

Real-time Monitoring

This feature allows you to monitor your Node.js application in real-time, including HTTP requests and transactions. The code sample initializes the monitoring with HTTP and transaction tracking enabled.

const io = require('@pm2/io');
io.init({
  transactions: true,
  http: true
});

Custom Metrics

This feature allows you to create custom metrics to monitor specific aspects of your application. The code sample demonstrates how to create a custom metric named 'Realtime user' and update its value every second.

const io = require('@pm2/io');
const metric = io.metric({
  name: 'Realtime user',
  type: 'metric'
});

setInterval(() => {
  metric.set(Math.random() * 100);
}, 1000);

Profiling

This feature enables profiling of your Node.js application to help identify performance bottlenecks. The code sample initializes the profiling feature.

const io = require('@pm2/io');
io.init({
  profiling: true
});

Other packages similar to @pm2/io

FAQs

Package last updated on 12 Aug 2019

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