Commit 1d8daeac authored by Brian Brazil's avatar Brian Brazil Committed by Julius Volz

Document new vector() function.

parent af4e1332
...@@ -269,6 +269,10 @@ expression is to be evaluated. ...@@ -269,6 +269,10 @@ expression is to be evaluated.
`topk(k integer, v instant-vector)` returns the `k` largest elements of `v` by `topk(k integer, v instant-vector)` returns the `k` largest elements of `v` by
sample value. sample value.
## `vector()`
`vector(s scalar)` returns the scalar `s` as a vector with no labels.
## `<aggregation>_over_time()`: Aggregating values over time: ## `<aggregation>_over_time()`: Aggregating values over time:
The following functions allow aggregating each series of a given range vector The following functions allow aggregating each series of a given range vector
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment