pm2-prometheus-metric

2.0.1 • Public • Published

npm NPM Downloads NPM

PM2 Metrics

Easy Install with PM2

pm2 install pm2-prometheus-exporter

Or Clone and run as a seperate application

    $ git clone https://gitlab.com/nikhil.maheshwari1/pm2-prometheus-exporter.git
    $ npm install
    $ pm2 start exporter.js --name pm2-prometheus-exporter

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
Modified & Working Version from pm2-prometheus-exporter by @saikatharryc

/pm2-prometheus-metric/

    Package Sidebar

    Install

    npm i pm2-prometheus-metric

    Weekly Downloads

    1

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    9.96 kB

    Total Files

    11

    Last publish

    Collaborators

    • nikzz