Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow setting a time offset for individual metrics in a query #529
Comments
juliusv
added
the
feature-request
label
Feb 15, 2015
This comment has been minimized.
This comment has been minimized.
|
Potentially we could also decide that we don't want to have this as a server-side feature at all and instead leave it up to the presentation layer to do multiple queries for different ranges - this depends on whether we have use cases for actually combining different offsets in the same query. I can imagine some, like wanting to only graph the difference ( |
This comment has been minimized.
This comment has been minimized.
|
This is useful for alerts when comparing against the past, so it needs to be in the rule language. I think the modifier is the cleanest, the others introduce semantic special cases. |
juliusv
added a commit
that referenced
this issue
Feb 18, 2015
juliusv
closed this
in
#536
Feb 18, 2015
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
juliusv commentedFeb 15, 2015
This would help use cases like prometheus-junkyard/promdash#201.
Suggestions so far:
mymetric[range,offset], whererangeis optional. Downside: would be confusing if[]could return both instant vectors and range vectors.mymetric offset 1h.offset(mymetric, 1h)