influxdata / kapacitor

Open source framework for processing, monitoring, and alerting on time series data
MIT License
2.32k stars 492 forks source link

Community Question #2445

Open Anaisdg opened 3 years ago

Anaisdg commented 3 years ago

https://community.influxdata.com/t/groupby-time-not-working-with-stream/16907 Thank you!

m4ce commented 3 years ago

I think you are supposed to use the window node and buffer the data at the interval you need. So, if you want to group by 5m, then your window would have a period of 5m. Once the window emits, you do the aggregation (mean, sum, etc.) as the window might contain multiple points?