I am running a third-party NodeJS application, and I would like to get some, any sort of performance metrics out of it. Request times, memory usage, CPU usage, anything would be better than the nothing I'm currently getting.
This application uses PM2, and is the only application running in this NodeJs server (other than the pm2-logrotate module). I found the pm2-metrics
NodeJs module (https://github.com/saikatharryc/pm2-prometheus-exporter) but it doesn't seem to export metrics for the other application running in PM2 (or I'm installing it incorrectly; I am not at all familiar with NodeJs).
How can I unintrusively add Prometheus metrics exporting to an existing NodeJs application?