Socket
Book a DemoInstallSign in
Socket

pm2-metrics

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm2-metrics

Produces Metrics of Pm2 of running instances.little updated version of https://github.com/burningtree/pm2-prometheus-exporter, any PR is appriciated.

latest
Source
npmnpm
Version
1.0.47
Version published
Weekly downloads
98K
-66.29%
Maintainers
1
Weekly downloads
 
Created
Source

npm NPM Downloads NPM

PM2 Metrics

Easy Install with PM2

pm2 install pm2-metrics

Or Clone and run as a seperate application

    $ git clone https://github.com/saikatharryc/pm2-prometheus-exporter.git
    $ npm install
    $ pm2 start exporter.js --name pm2-metrics

Open your browser

http://<HOST>:9209/metrics

For Prometheus Config

in prometheus.yaml inside scrape_configs add this block:

- job_name: pm2-metrics
scrape_interval: 10s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
  - targets:
      - localhost:9209

Grafana dashboard #1 (comment)

PR(s) & issue(s) are welcome
*change host name from localhost on basics where you are hosting
Modified & Working Version from pm2-prometheus-exporter by @burningtree

Keywords

pm2

FAQs

Package last updated on 11 Sep 2023

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