opendut icon indicating copy to clipboard operation
opendut copied to clipboard

Use Moving Averages in Telemetry

Open mbfm opened this issue 1 year ago • 0 comments

The memory and CPU usage are currently sent only once per minute. This means that we mostly get data in between the short peaks when CARL or EDGAR actually performs work.

To improve on this, the data can be measured more frequently, then added into a moving average and then that is sent once per minute.

Tasks:

  • [ ] Research moving averages, which library is recommended and the best method to use here.
  • [ ] Implement the measurement and calculation.
  • [ ] Make the measurement frequency configurable.

mbfm avatar Apr 04 '24 08:04 mbfm