The PM2 integration enables real-time monitoring of your PM2-managed applications and sends metrics to the Watchlog Agent for display. With this integration, you can track the status, resource usage, and other key metrics of all your PM2 processes.
Step 1: Clone the PM2 Integration Repository
First, clone the Watchlog PM2 integration repository to your server:
git clone [email protected]:watchlogserver/watchlog-pm2.git
Step 2: Install Dependencies
Navigate into the cloned repository directory and install the necessary dependencies:
cd watchlog-pm2 npm install
Step 3: Start the PM2 Integration with PM2
Once the dependencies are installed, use PM2 to start the integration app. This app will send all PM2 metrics to the Watchlog Agent:
pm2 start watchlog-pm2
Step 4: Verify Integration
After starting the PM2 integration, log in to your Watchlog panel and verify that metrics from your PM2-managed applications are displayed under the PM2 integration section.
Final Note
If you encounter any issues or need further customization, feel free to refer to the source code in the cloned repository or reach out to the Watchlog support team for assistance.