DEV Community

Marcus Vorster
Marcus Vorster

Posted on

SnapSys - A Lightweight Linux CLI for System Snapshots (CPU, Memory, Disk) in JSONL

Hey everyone

I just released my first open source Go project: SnapSys, a simple CLI tool designed to capture CPU, memory, and disk usage at fixed intervals and export the data as structured JSONL.

It’s a small but powerful utility aimed at:

Developers running performance benchmarks
Engineers debugging resource issues
DevOps teams logging metrics inside CI/CD pipelines or containers
Tinkerers who want raw, lightweight system metrics to feed into custom tools

What is SnapSys?
SnapSys is a Linux-only CLI tool written in Go that periodically takes a snapshot of your system’s:

CPU usage (percentage, user/system time, etc.)
Memory usage (total, used, available)
Disk usage (per mount point)
And logs it in clean newline-delimited JSON (JSONL). Perfect for:

Feeding into Elasticsearch, Loki, or other log engines
Plotting with Grafana, Python, or Jupyter
Using in bash or Go scripts to trigger events
Keeping lightweight logs during builds, deployments, or CI steps

Why I Built This

I’m trying to get more involved in the open source world and build tools that are useful to developers like me.

If you try it and have any feedback (good or bad), I’d love to hear it. Feature requests, PRs, and even critiques are all welcome.

GitHub: github.com/MarcusMJV/snapsys

Thanks for reading,
Marcus

Top comments (0)