I’m trying to work out whether, and if so how, the following is possible with
Grafana (version 5.4.3 if it matters):
I have an InfluxDB data set, which receives one numeric value per second from a
data source. This value may be zero, or a (usually small) positive integer.
I want to display a line graph of the cumulative sum of the values over the past
hour, getting one new data point per second (so, the value of each displayed
point is the sum of the previous 3600 values in the InfluxDB time series).
Assuming that is possible, can I further extend that idea by having the time
interval over which the values are summed (one hour in the above example)
automatically match the duration of the graph being shown in Grafana, so that
if I change the timescale of the graph, the calculation adjusts to sum the
values over the past 10 minutes, or 24 hours, or whatever I’ve chosen as the
duration of the graph’s X-axis?