You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@markusr I think we need the online mean for the online variance, but we should get a big performance gain by switching from Fields() to FieldList(). I made this change in #4741, can you compare the performance with this code?
Steps to reproduce:
Expected behavior:
"mean" is calculated at the
Push
by dividingActual behavior:
All values also variance are calculated on each
Add
https://github.com/influxdata/telegraf/blob/master/plugins/aggregators/basicstats/basicstats.go#L107
Additional info:
I tested this on a raspberry pi 3.
After removing the "online" calculation part the cpu usage dropped from 72% to 35%. (3000 metric per second input and 5s aggregation time).
Another idea would be to add
sum
andmean
to theminmax
aggregator or a complete new aggregator.The text was updated successfully, but these errors were encountered: