mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-08 16:12:16 -04:00
Update docs/querying/basics.md
Co-authored-by: Björn Rabenstein <beorn@grafana.com> Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
This commit is contained in:
parent
74d7d375ac
commit
5940b31647
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ The offset may be a time expression in parenthesis. A time expression is
|
|||
different from a normal expression in that it must yield a scalar and
|
||||
must not query series. The scalar resulting from the time expression will be
|
||||
used as the offset in seconds. The `time()` function can only be called outside
|
||||
subqueries. For example, 5 minute offset may be calculated from adding 2 minutes
|
||||
subqueries. For example, a 5 minute offset may be calculated from adding 2 minutes
|
||||
and 180 seconds together:
|
||||
|
||||
http_requests_total offset (2m + 180)
|
||||
|
|
|
|||
Loading…
Reference in a new issue