My Performance Tracker is an npm package designed to monitor real-time server performance metrics including CPU consumption, memory usage, server response time, and uptime. It provides a simple setup to get live updates on your server's health, making it easier to optimize and troubleshoot performance issues.
- Real-Time CPU Consumption: Monitor the CPU usage of your server in real-time.
- Memory Consumption: Track how much memory your server is using.
- Server Response Time: Get real-time data on the server's response time.
- Uptime Tracking: Know how long your server has been running without downtime.
To install the package, run:
npm install my-performance-tracker
- After installing the package, you'll need to add the following scripts to your project's package.json:
"scripts": {
"postinstall": "cd node_modules/my-performance-tracker && npm install",
"start-tracker": "cd ./node_modules/my-performance-tracker && npm run start-all"
}
-
Post-Installation Setup: The postinstall script will ensure that all necessary dependencies for the tracker are installed.
-
Starting the Tracker: To start monitoring your server, run:
npm run start-tracker
This will launch the monitoring tools and begin tracking your server's performance metrics.
Developed by Shubham Tiwari.