Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support time-shift of a metric #175

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

support time-shift of a metric #175

jtamplin opened this issue Feb 27, 2013 · 1 comment

Comments

@jtamplin
Copy link
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.

@johann8384
Copy link
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 added a commit to johann8384/opentsdb that referenced this issue Mar 4, 2016
manolama pushed a commit to manolama/opentsdb that referenced this issue Mar 13, 2016
manolama pushed a commit that referenced this issue Mar 13, 2016
Fixes #175

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

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

No branches or pull requests

2 participants