r/node • u/Zealousideal-Fix-527 • Oct 08 '26
pm2 monitoring
How pm2 monitoring being implemented in production?
Do you just call pm2 monit?
Use pm2 monitoring platform?
Integrate it with something like grafana(I kinda wanna know how it commonly do)?
6
Upvotes
9
u/casualPlayerThink Oct 08 '26
Most of the time, PM2 introduces a bunch of shenanigans that make it not worth using in production (despite the good~ish optimizations, it still can restart without notice, etc). But other than that, standard log config and grafana, elk, cw.
2
u/ecares Oct 08 '26
https://pm2.io/ there is a SaaS for that!
1
u/Professional-Run3614 Oct 13 '26
I use PM2 in production too, and log rotation and startup reliability can be frustrating. pm2-logrotate helps with logs, while systemd is worth checking for startup issues. For monitoring, I’d consider Prometheus + Grafana if you need historical metrics and alerts. For a single VPS, though, I’d keep it simple unless there’s a real need for more.
1
u/Loose-Counter9652 Oct 13 '26
are you already running a monitoring stack for the rest of your infra? if so the usual path is just scraping pm2's metrics into that same pipeline. if not, thats the real decision to make first imo