Hi, i have problems fetching high-frequency data from InfluxDB 2.x and visualization in Grafana. I choose my time window too large, so get a „too many data points“ error in Grafana.
Hence it would be nice if one could build a re-sampling query using the number of initially fetched data points and a goal number of data points to determine a re-sampling rate such that the number of points in the final output matches the goal number independent of the time range chosen.
Currently, I am using a static aggregateWindow(every: 1m, fn: max) to prevent the error. I saw as well the documentation to co dictional statements combined with aggregateWindow(…). However, I wouldn‘t know how to achieve what I want.
Any hint would be nice.