saikatharryc / pm2-prometheus-exporter

:rabbit: :rabbit: pm2 prometheus exporter
146 stars 37 forks source link

Unable to change default port #66

Open NathanD14 opened 3 years ago

NathanD14 commented 3 years ago

After thoroughly checking the code, the port on which pm2-metrics runs could be changed in exporter.js in earlier versions (1.0.25). But in version 1.0.38 this does not work as it is hardcoded in package.json

saikatharryc commented 3 years ago

Hi, @NathanD14 I would love it if you can raise a PR maybe. Thank you!

austinankur commented 2 months ago

U can change it like

pm2 set pm2-metrics:port 9210
pm2 install pm2-metrics