raintank / graphite-kairosdb

Graphite-Api finder plugin for Kairosdb
Apache License 2.0
10 stars 4 forks source link

value incorrectly included #11

Closed Dieterbe closed 9 years ago

Dieterbe commented 9 years ago

this looks good:

root@ckg-ssd-1:~# curl -H 'X-Org-Id:11' 'http://localhost:8888/render?target=litmus.origin_plaetinck_be.collector*be.http.error_state&format=json&from=1438265800&until=1438266200' | json_pp
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   207  100   207    0     0   6130      0 --:--:-- --:--:-- --:--:--  6272
[
   {
      "datapoints" : [
         [
            1,
            1438265812
         ],
         [
            1,
            1438265872
         ],
         [
            1,
            1438265932
         ],
         [
            1,
            1438265992
         ],
         [
            1,
            1438266052
         ],
         [
            1,
            1438266112
         ],
         [
            1,
            1438266172
         ]
      ],
      "target" : "litmus.origin_plaetinck_be.collector1be.http.error_state"
   }
]

watch what happens when i make the from a bit more recent:

root@ckg-ssd-1:~# curl -H 'X-Org-Id:11' 'http://localhost:8888/render?target=litmus.origin_plaetinck_be.collector*be.http.error_state&format=json&from=1438266000&until=1438266200' | json_pp
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   159  100   159    0     0   4438      0 --:--:-- --:--:-- --:--:--  4542
[
   {
      "target" : "litmus.origin_plaetinck_be.collector1be.http.error_state",
      "datapoints" : [
         [
            1,
            1438266052
         ],
         [
            1,
            1438266112
         ],
         [
            1,
            1438266172
         ],
         [
            null,
            1438266232
         ]
      ]
   }
]

now a value is included that is beyond the until date

Dieterbe commented 9 years ago

make the from a bit higher still and the value disappears again:

root@ckg-ssd-1:~# curl -H 'X-Org-Id:11' 'http://localhost:8888/render?target=litmus.origin_plaetinck_be.collector*be.http.error_state&format=json&from=1438266100&until=1438266200' | json_pp
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   122  100   122    0     0   3178      0 --:--:-- --:--:-- --:--:--  3210
[
   {
      "target" : "litmus.origin_plaetinck_be.collector1be.http.error_state",
      "datapoints" : [
         [
            1,
            1438266112
         ],
         [
            1,
            1438266172
         ]
      ]
   }
]