How to use the @pm2/io.init function in @pm2/io

To help you get started, we’ve selected a few @pm2/io examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keymetrics / app-playground / app.js View on Github external
const io = require('@pm2/io')
const http = require('http')

io.init({
  network: {
    traffic: true
  }
})


/**
 * Probe system #1 - Histograms
 *
 * Measuring the event loop delay
 */

const TIME_INTERVAL = 1000

let oldTime = process.hrtime()

@pm2/io

PM2.io NodeJS APM

Apache-2.0
Latest version published 8 months ago

Package Health Score

79 / 100
Full package analysis

Similar packages