New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pm2plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm2plugin

New Relic plugin to pull in data from PM2

latest
Source
npmnpm
Version
2.2.1
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

pm2plugin

This plugin will pull data from PM2 and publish to New Relic as a plugin

Fork of https://github.com/kenahrens/newrelic-pm2-plugin. Allows plugin to be required as a node module and the poller triggered programatically.

Installation instructions

  • Install the dependency npm install pm2plugin or yarn add pm2plugin
  • In your app's startup script, after you start your app in PM2, require the plugin and pass your New Relic license key to start the listener.
if (process.env.NEW_RELIC_LICENSE_KEY) {
    require('pm2plugin')(process.env.NEW_RELIC_LICENSE_KEY, true);
}

Parameters

pm2plugin(license, debug, hostname, guid, version, url)
ParamTypeDefaultDescription
licenseStringRequiredNew Relic License Key
[debug]BooleanfalseOutput debug info to the console?
[hostname]Stringos.hostname()Component name to be shown in NR
[guid]Stringcom.newrelic.pm2pluginNR plugin Guid
[version]Stringversion from package.jsonThe version of the plugin
[url]Stringhttps://platform-api.newrelic.com/platform/v1/metricsThe new relic url to post to

PM2 Dashboard

History

  • 2.2.0 - Add hostname parameter
  • 2.0.0 - Convert for use as node module
  • 1.1.0 - Metrics for each PM2 process and added restarts per interval
  • 1.0.4 - Close the connection to PM2 on each poll cycle
  • 1.0.3 - Fix for when errors are not properly handled from Plugin API
  • 1.0.2 - Support for multiple PM2 Servers (run on each PM2 instance)
  • 1.0.1 - Support for single PM2 Server only, separate config file
  • 1.0.0 - Initial prototype

FAQs

Package last updated on 25 Jul 2018

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