This is a singlestat panel for OpenTSDB datasource:
Here is my requirement: on this metric I would like to sum all data within every 10m, and only show the value of last 5m ago, which display “the latest alive requests count”. However the combinations of the 2 aggregators (as shown above) don’t make sense to me, the yield value is not right?
Here is one example:
if I select “sum” in both aggregators, the respond json will look like:
dps:{1496976300: 3975, 1496976900: 4576},
aggregator: “sum”,
downsample: “5m-sum”
However the singlestat panel shows an average number of 4276? (= (3975+4576)/2 )
And if I select “last” in the 1st line, the response is:
dps: {1496976300: 76, 1496976900: 126},
aggregator:“last”,
downsample:“5m-sum”
But the panel shows “101” (= (76 + 126) / 2)
Just wondering how can I show the last 5 minutes sum in the panel?