support time-shift of a metric #175

Closed
jtamplin opened this Issue Feb 27, 2013 · 1 comment

Projects

None yet

2 participants

@jtamplin
Contributor

Graphite supports a timeShift(metric, delta) function which adjusts the time shown by the delta. This is particularly useful for week-over-week/etc comparisons, where you plot one metric against that same metric 7 days ago.

It shouldn't be hard to implement, you just subtract the delta from the timestamp you are looking for before fetching it from the database.

@whilp whilp referenced this issue in monitorama/hackathon Mar 17, 2013
Closed

timeShift() for OpenTSDB #24

@johann8384
Member

We have this in our internal OpenTSDB as one of the expressions, I'll try to get a PR together for it.

http://opentsdb.net/docs/build/html/api_http/query/gexp.html

@johann8384 johann8384 added a commit to johann8384/opentsdb that referenced this issue Mar 4, 2016
@johann8384 johann8384 Added timeShift function
Fixes #175
6ef0268
@manolama manolama added a commit to manolama/opentsdb that referenced this issue Mar 13, 2016
@johann8384 @manolama johann8384 + manolama Added timeShift function
Fixes #175
3ee750f
@manolama manolama added a commit that referenced this issue Mar 13, 2016
@johann8384 @manolama johann8384 + manolama Added timeShift function
Fixes #175

Signed-off-by: Chris Larsen <clarsen@yahoo-inc.com>
c7dee01
@johann8384 johann8384 closed this Mar 19, 2016
@johann8384 johann8384 added a commit to johann8384/opentsdb that referenced this issue Dec 5, 2016
@johann8384 johann8384 Added timeShift function
Fixes #175

Signed-off-by: Chris Larsen <clarsen@yahoo-inc.com>
8a98e21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment