From 8aa9cc3978f8dc5c6c8bf5347e66a30db8897eaa Mon Sep 17 00:00:00 2001 From: schou Date: Sun, 14 Feb 2021 21:25:24 -0500 Subject: [PATCH] add blob to basics documentation about negative shift Signed-off-by: schou --- docs/querying/basics.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/querying/basics.md b/docs/querying/basics.md index 7229e8e1aa..1465a0a403 100644 --- a/docs/querying/basics.md +++ b/docs/querying/basics.md @@ -204,6 +204,11 @@ The same works for range vectors. This returns the 5-minute rate that rate(http_requests_total[5m] offset 1w) +For comparisons with temporal shifts forward and backward, a negative offset +can be specified: + + rate(http_requests_total[5m] offset -1w) + ### @ modifier The `@` modifier allows changing the evaluation time for individual instant