Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

output snapshot as json #180

Open
zachvalenta opened this issue Dec 13, 2019 · 0 comments
Open

output snapshot as json #180

zachvalenta opened this issue Dec 13, 2019 · 0 comments

Comments

@zachvalenta
Copy link

ask

CLI arg to output snapshot of system metrics (CPU, mem, disk, et al.) as JSON

why

Diffing. For example, let's say your machine feels laggy. You open gotop and things look pretty normal, but you don't remember the metrics from the last time you opened gotop, so unless something is very obviously wrong (machine is super hot, runaway process is hogging memory) you won't have any useful comparisons to make.

Whereas, with the JSON output option, you could just gotop --json > gotop-metrics-<date>.json to establish a baseline and then, when things get laggy, compare your current situation to the baseline.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant