In seconds, this Quick Start tutorial will show you how to start monitoring your Node.js application with PM2 Plus.
We will assume that your app is already started or wrapped by PM2. If not, follow the PM2 Quick Start tutorial.
Create an account
Connect your server to the dashboard
Connect your server to your dashboard and start collecting metrics with:
pm2 link <secret> <public>
Or, if you don’t have access to the CLI, add
PM2_SECRET_KEY environment variables set with your public and private keys.
Link an app help on the top left of your dashboard
Install CPU/Memory snapshot
You must have
On Linux, enter
sudo apt-get install build-essential.
On Mac, enter
g++ in terminal and then follow the instructions.
Use the PM2 installer:
pm2 install profiler
Then reload your application to enable the profiler:
pm2 reload all
You are done
Go back to the dashboard, you will have access to realtime metrics of your app.