Sample Node.js app to demonstrate application performance monitoring and storage using PM2 & InfluxDB
- Node.js & Express.js - Backend server
- PM2 - Process manager and monitoring
- InfluxDB v3 - Time series database for metrics
- HTML, CSS, JavaScript - Frontend visualization
node-perf-demo/
├── .env
├── .gitignore
├── package.json
├── ecosystem.config.js
├── server.js
│ influxdb.js
│ └── public/
│ ├── index.html
│ ├── styles.css
│ └── app.js
└── README.md
- Node.js (v14+)
- InfluxDB Cloud account (free/no credit card needed)
- Download/Clone this project from GitHub
- Run the following commands to install the dependencies (express, pm2, influxDB v3 client library, dotenv)
- Open
.env
file and update and save the enviorment variables for InfluxDB that can be found in the InfluxData Cloud portal. cd node-perf-demo
pm2 start ecosystem.config.js
- Open
localhost:3000
in your browser