-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
performanceproblems with decreased performance or enhancements that improve performanceproblems with decreased performance or enhancements that improve performance
Description
Steps to reproduce:
- Config basicstats to only do
stats = ["count", "min" , "max" , "mean"]
Expected behavior:
"mean" is calculated at the Push by dividing
v.sum / v.count
Actual 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 and mean to the minmax aggregator or a complete new aggregator.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
performanceproblems with decreased performance or enhancements that improve performanceproblems with decreased performance or enhancements that improve performance