https://github.com/saikatharryc/pm2-prometheus-exporter
:rabbit: :rabbit: pm2 prometheus exporter
https://github.com/saikatharryc/pm2-prometheus-exporter
metrics pm2 prometheus prometheus-exporter
Last synced: 5 months ago
JSON representation
:rabbit: :rabbit: pm2 prometheus exporter
- Host: GitHub
- URL: https://github.com/saikatharryc/pm2-prometheus-exporter
- Owner: saikatharryc
- Created: 2018-08-30T03:36:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-20T20:24:18.000Z (7 months ago)
- Last Synced: 2025-04-11T19:58:23.186Z (6 months ago)
- Topics: metrics, pm2, prometheus, prometheus-exporter
- Language: JavaScript
- Homepage:
- Size: 1.07 MB
- Stars: 155
- Watchers: 3
- Forks: 40
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://npmjs.com/package/pm2-metrics)
[](https://www.npmjs.com/package/pm2-metrics)
[](https://nodei.co/npm/pm2-metrics/)# PM2 Metrics
#### Easy Install with PM2
```shell
pm2 install pm2-metrics
```#### Or Clone and run as a seperate application
```shell
$ git clone https://github.com/saikatharryc/pm2-prometheus-exporter.git
$ npm install
$ pm2 start exporter.js --name pm2-metrics
```#### Open your browser
```shell
http://:9209/metrics
```#### For Prometheus Config
in `prometheus.yaml`
inside `scrape_configs` add this block:```yml
- job_name: pm2-metrics
scrape_interval: 10s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- localhost:9209
```#### Grafana dashboard [#1 (comment)](https://github.com/saikatharryc/pm2-prometheus-exporter/issues/1#issuecomment-499551831)
###### 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](https://github.com/burningtree/pm2-prometheus-exporter)