Hello. I have got an issue with downsampling when using null filling policy:
curl -i -H 'Content-Type: application/json' -d '{"start":1411193000, "queries":[{"aggregator":"sum", "metric":"pool.stats.hashrate", "tags": {"pool": 14}, "downsample":"17391s-avg-null"}]}'
http://127.0.0.1:4242/api/query/This query returns an empty array of datapoints but same query without filling policy:
curl -i -H 'Content-Type: application/json' -d '{"start":1411193000,
"queries":[{"aggregator":"sum", "metric":"pool.stats.hashrate", "tags":
{"pool": 14}, "downsample":"17391s-avg"}]}'
http://127.0.0.1:4242/api/query/ returns lots of results.
I found out that query with policy works up to 90 minutes including but when i try 91 minute or 5460s or 5460000ms i get same result(no datapoints) but if i specify period in hours it works(as example 17391 seconds is 4,830833333 hours and when i try 5 hours datapoints are being returned correctly). I use stable version of Opentsdb 2.3.0. I am not sure if this is some kind of bug but logs saying this:
мар 01 15:52:42 archlinux opentsdb[32568]: 15:52:42.338 [AsyncHBase I/O Worker #7] DEBUG n.opentsdb.core.AggregationIterator - No DP in range for #0: 1410700354000 < 1411023600000
мар 01 15:52:42 archlinux opentsdb[32568]: 15:52:42.338 [AsyncHBase I/O Worker #7] DEBUG n.opentsdb.core.AggregationIterator - No DP in range for #1: 1410700354000 < 1411023600000