Sometimes I just want to know what my Linux server is doing, without spinning up Grafana or digging through dmesg logs.
I built this while working at AlphaPoint, where lightweight tools were essential for monitoring crypto infrastructure without adding performance overhead. I wanted an on-demand way to check system stats: CPU load, memory usage, disk space, network I/O.
The Fix: Python + psutil
I wrote a script that:
- ✅Uses psutil to grab system metrics: CPU, RAM, disk, uptime
- 📋Formats output for easy scanning or parsing
- ⏰Runs via cron, CLI, or as a quick health check script
- 📧Saves to local file or emails on threshold breach
Perfect for resource-constrained instances or just when you want clarity without clutter.
GitHub: github.com/chinmaya-chhatre/linux-resource-usage-tracker
What Changed
- ⚡Quick visibility into system spikes across environments
- 🔍Caught silent memory leaks in long-running apps
- 🐛Helped debug slowdowns without setting up new tools
Good observability does not need to be heavy. This script saved me more than once when top was not enough.
Tradeoffs I Made
- 🖥️CLI-based to avoid storage and infra bloat: no persistent dashboard
- 🧹Pure Python: did not rely on Telegraf or a daemon agent
- 🔔Threshold-only alerts: less noise, more signal
What I Would Add Next
- 📊CSV export and CLI chart support for visual folks
- 📦Package as pip installable CLI tool
- 💬Push alerts to a Slack or Discord channel
More from the Tech Blog