Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.sdf.org

Hardware resources usage over time ?

Hi,

I'm looking for a FLOSS way to have hardware resources usage ( cpu, mem, storage, network, etc.. ) over time ?

Any lightweight solution suggestion ?

It can be TUI or GUI ( XFCE )

It could be nice also to can filter result/graph by process, user etc..

Thanks

View original on lemmy.sdf.org
23

17 replies

Damn ! look very promising !

Do you know if we can filter the historical data on pid, uid ?

1

I haven't used sar in over 10 years. I used to use it to monitor resource usage of jobs that I was running while I was at work. Now that I look back, I was using isag (no longer maintained) to generate reports for me.

I would think it should be possible to package ksar in an appimage or docker container - but I don't know if one exists.

But - there is a newer option:

sadf -g your_datafile [ -- sar_options ] > output.svg

This is part of the sysstat package - no need to install anything else, and no java. sadf allows you to make graphs that you can view in your browser. Check the man file for sadf for more information. (Can't comment any further on this since I haven't used it.)

1
kbin.earth

You may have a bit of a hard time finding something that's completely FLOSS that's not on the older side (the sar visualizer being a Java desktop application being a consequence of that age). There are various ways to dump resource usage into a time series database like Prometheus (Apache2), InfluxDB (Apache2/MIT), or VictoriaMetrics (Apache2) and then visualize it with a frontend (Grafana, APGL). The database is going to be the tricky part. All of the time series DBs I'm aware of are permissively licensed. Grafana may be a good fit for you, however. It's written in Go so it's relatively light, although it obviously requires a browser to interact with.

2

I don't think btop even records to any output file, it's more of a "taskmanager with graphs" than a logging utility.

5
dan
upvote.au

If you don't mind a web UI, Netdata is great. It collects a bunch of metrics once per second and can retain them for a long period of time. The web UI is pretty good. Their Github readme links to some example servers so you can try it out first. Just click the link to use it without an account (that's optional).

It's mainly designed for servers, but there's no reason you couldn't run it on a client system. They're focusing a lot on AI/ML-based anomaly detection as well as their cloud offering at the moment, but you don't have to use either and can just stick to the open-source agent.

2

I just try, but the UI is not FLOSS and it confusing. not for me. but thank for the feedback

2

It doesnt graph over time really, it only does it while open and loses the data if you close it.

3

You reached the end

Hardware resources usage over time ? | Spyke