opendut
opendut copied to clipboard
Use Moving Averages in Telemetry
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.