mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Docs: timestamp() function.
This commit is contained in:
parent
aeb524ad14
commit
faf4bb03ee
|
@ -368,6 +368,13 @@ Same as `sort`, but sorts in descending order.
|
||||||
this does not actually return the current time, but the time at which the
|
this does not actually return the current time, but the time at which the
|
||||||
expression is to be evaluated.
|
expression is to be evaluated.
|
||||||
|
|
||||||
|
## `timestamp()`
|
||||||
|
|
||||||
|
`timestamp(v instant-vector)` returns the timestamp of each of the samples of
|
||||||
|
the given vector as the number of seconds since January 1, 1970 UTC.
|
||||||
|
|
||||||
|
*This function was added in Prometheus 2.0*
|
||||||
|
|
||||||
## `vector()`
|
## `vector()`
|
||||||
|
|
||||||
`vector(s scalar)` returns the scalar `s` as a vector with no labels.
|
`vector(s scalar)` returns the scalar `s` as a vector with no labels.
|
||||||
|
|
Loading…
Reference in a new issue