π₯ Tracking CPU, Memory & Disk on Linux β Without Installing a Thing
π The Problem
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 a lightweight, on-demand way to check system stats across machines:
CPU load, memory usage, disk space, maybe even network I/O.
π οΈ The Fix: Python, psutil, and Clean Output
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 can email on threshold breach
Itβs perfect for resource-constrained instances or just when you want clarity without clutter.
π¬ GitHub Link
Open-source, portable, and plug-and-play:
π
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
βοΈ Tradeoffs I Made
- No Persistent Dashboard: Kept it CLI-based to avoid storage/infra bloat
- No Agent Overhead: Didnβt rely on Telegraf or Daemon β just pure Python
- Threshold-Only Alerts: Only triggers when resource use crosses limits β less noise, more signal
π§ What I'd Add Next
- π CSV export + CLI chart support for visual folks
- π¦ Package as pip installable CLI tool
- π€ Push alerts to a Slack/Discord channel
π§΅ Why Iβm Sharing This
Because good observability doesnβt need to be heavy.
Because I love building things I actually use.
And because this script saved me more than once when βtopβ wasnβt enough.
π Bonus Links