From faf4bb03ee55a77f4ff4c1d550a0eb56fc4d9050 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Fri, 27 Oct 2017 15:44:57 +0100 Subject: [PATCH] Docs: timestamp() function. --- docs/querying/functions.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/querying/functions.md b/docs/querying/functions.md index 43e4e9354..36e01fc95 100644 --- a/docs/querying/functions.md +++ b/docs/querying/functions.md @@ -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 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(s scalar)` returns the scalar `s` as a vector with no labels.