From dd20784d06495bda918f5de2dca5022782f98379 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 28 Aug 2020 10:13:16 +0300 Subject: [PATCH] docs/Single-server-VictoriaMetrics.md: mention that VictoriaMetrics accepts relative times at `time`, `start` and `end` query args --- README.md | 3 +++ docs/Single-server-VictoriaMetrics.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 335e4e676..5a6212d49 100644 --- a/README.md +++ b/README.md @@ -558,6 +558,9 @@ VictoriaMetrics supports the following handlers from [Prometheus querying API](h These handlers can be queried from Prometheus-compatible clients such as Grafana or curl. +Additionally to unix timestamps and [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) VictoriaMetrics accepts relative times in `time`, `start` and `end` query args. +For example, the following query would return data for the last 30 minutes: `/api/v1/query_range?start=-30m&query=...`. + VictoriaMetrics accepts additional args for `/api/v1/labels` and `/api/v1/label/.../values` handlers. See [this feature request](https://github.com/prometheus/prometheus/issues/6178) for details: diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index 335e4e676..5a6212d49 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -558,6 +558,9 @@ VictoriaMetrics supports the following handlers from [Prometheus querying API](h These handlers can be queried from Prometheus-compatible clients such as Grafana or curl. +Additionally to unix timestamps and [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) VictoriaMetrics accepts relative times in `time`, `start` and `end` query args. +For example, the following query would return data for the last 30 minutes: `/api/v1/query_range?start=-30m&query=...`. + VictoriaMetrics accepts additional args for `/api/v1/labels` and `/api/v1/label/.../values` handlers. See [this feature request](https://github.com/prometheus/prometheus/issues/6178) for details: