carbonapi icon indicating copy to clipboard operation
carbonapi copied to clipboard

timeShift() needs resetEnd=False

Open dgryski opened this issue 8 years ago • 5 comments

Consider: target=metric&target=timeshift(metric, '24h')&from=midnight&until=tomorrow

that should display 1d of data from midnight to midnight, with metric graphed as much as we have, overlaid on all of yesterday's data.

dgryski avatar Oct 06 '16 11:10 dgryski

Turns out this works. I need to hunt down the (internal) query that was failing and resimplify it.

dgryski avatar Oct 15 '16 19:10 dgryski

Can you provide more information about that? So I'll be able to fix that.

Civil avatar Apr 26 '17 07:04 Civil

Docs for timeshift http://graphite.readthedocs.io/en/latest/functions.html#graphite.render.functions.timeShift

IIRC we don't support resetEnd=false

dgryski avatar Apr 26 '17 10:04 dgryski

If resetEnd is False, will instead draw full range including future time.

My read of the doc is the opposite. That we always behave like resetEnd=false. I'm also experiencing graphite (0.9.12) draws the same graph for both false and true (with undefined implying the default of resetEnd=true).

nnuss avatar Apr 26 '17 14:04 nnuss

That's entirely possible :D I just remember seeing a graph that was using resetEnd and noticing that our code did the WrongThing. In either case, our code is incomplete with respect to upstream graphite-web.

dgryski avatar Apr 26 '17 14:04 dgryski

I think that was actually fixed in #543 long time ago.

Civil avatar Dec 06 '22 00:12 Civil