This Python script monitors system health metrics in real-time using psutil
and matplotlib
.
- CPU Usage: Tracks CPU utilization percentage.
- Memory Usage: Monitors RAM usage percentage.
- Disk Usage: Displays disk usage percentage of the first partition found.
- Network Usage: Shows bytes sent and received per second.
- Python 3.x
psutil
library (pip install psutil
)matplotlib
library (pip install matplotlib
)
- Clone the repository or download the
monitoring.py
file. - Install dependencies:
pip install -r requirements.txt
(if using a requirements file). - Run the script:
python monitoring.py
. - View real-time system metrics in the generated plots.
- Adjust plot update intervals (
interval
parameter inFuncAnimation
) as needed. - Ensure sufficient permissions for accessing system metrics, especially on non-Windows platforms.
This project is licensed under the MIT License - see the LICENSE file for details.