iStats icon indicating copy to clipboard operation
iStats copied to clipboard

Feature request: light logging

Open diego898 opened this issue 8 years ago • 8 comments

It would be cool if istats could monitor the temp over some time and show me a graph

diego898 avatar May 12 '16 18:05 diego898

Interesting idea but that would require iStats to run in the background. What is your suggestion exactly? Have an extra param to specify the time frame for "recording" data and then displaying that or have a daemon version of iStats that collects data all the time and displays it when prompted?

Chris911 avatar May 12 '16 18:05 Chris911

Great question! I have no idea! I guess ideally it would be both so end users can choose what suits them best, but might be simpler to set istat to check every 1 min, and display the results when prompted? or perhaps keep it running and it would auto-update some plot?

diego898 avatar May 12 '16 18:05 diego898

I think it's quite easy to add rrd file storage where scan results can be added .. can be run as daemon or from cron jobs..

mongrelx avatar Jun 01 '16 19:06 mongrelx

or add support for webservices like thingspeak etc

mongrelx avatar Jun 01 '16 19:06 mongrelx

Maybe as an initial PoC you could just add a flag to have iStats running in foreground collecting stats. Then, when the process quits (by user termination), dump all the stats into a file that can be used to generate graphs.

Things to consider would be:

  • How often should iStats poll the system for stats
  • Which format should iStats use to store the data
  • Where to store the data? in memory? sqlite3?

How does that sound?

mongrelion avatar Feb 18 '17 10:02 mongrelion

For anyone still wanting something like this, try https://github.com/tomtastic/scripts/blob/master/mac_telegraf_temps

You can use the above script with Telegraf to send data to InfluxDB for viewing in Grafana. It's very easy to setup : Messages Image(960586628)

tomtastic avatar Oct 12 '19 12:10 tomtastic

This was funny:

-- It would be cool if ... -- ... What is your suggestion exactly? ... -- Great question! I have no idea! ...

My attitude to iStats is as it's either what I run manually in Terminal or I call it in my main program loops to see if my CPU is melting. Both use cases are for my Macbook, not a server. In both cases I feel the slowness of the tool, while tools that you guys have just mentioned are more "enterprise" and such that should be highly optimized. I mean these things are from different worlds. iStats is not a thing that should use some well-defined protocols and have adapters to all this stuff. A simple printing one line per second in any format is enough -- do any wrappers on it by yourself. You all are free to use bash, awk, ruby, perl and anything that fits best to you.

Nakilon avatar Nov 28 '19 22:11 Nakilon

@Nakilon noob.

antondeliverect avatar Jul 15 '22 09:07 antondeliverect