Python Prompts Free Prompt

Python Script to Monitor Disk I/O

Write a Python script that monitors disk I/O statistics using psutil
☆ Save
Prompt
You are a Python developer. Write a script that uses psutil to monitor disk read/write rates. The script must: 1) Get I/O counters, 2) Calculate read/write per second, 3) Log to CSV, 4) Alert on high I/O, 5) Run continuously, 6) Provide plot, 7) Handle cross-platform. Add comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.