PM2 Integration

Monitor your PM2-managed Node.js applications with Watchlog for real-time performance insights.

1. Install Watchlog Agent

2. Clone the PM2 Integration Repository

Run the following command to clone the Watchlog PM2 integration:

git clone [email protected]:watchlogserver/watchlog-pm2.git

3. Install Dependencies

  1. Navigate into the directory: cd watchlog-pm2
  2. Install Node.js packages: npm install

4. Start the PM2 Integration

Use PM2 to launch the integration app, which forwards metrics to the Watchlog Agent:

pm2 start watchlog-pm2

Explore PM2 Monitoring Capabilities

Application Name & Status

View your PM2 app names, online/offline status, and uptime.

Memory & CPU Usage

Monitor resource consumption and process IDs with real-time charts.

Version, User & PID

See the executing user, app version, and process IDs for each service.

Requests Per Minute

Interactive charts show request throughput and app load over time.

Dynamic Memory Charts

Real-time and historical memory usage with thresholds and caps.

CPU Usage Trends

Analyze CPU load trends to pinpoint unoptimized processes and scaling needs.

All metrics available in real time or over custom time ranges via the Watchlog dashboard.

Start Monitoring PM2