From c0db28cd9a70bb2b893d9e84d86d9c85cc21afe9 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 12 Dec 2020 14:16:51 +0200 Subject: [PATCH] docs/MetricsQL.md: clarify that `limitk(k, q)` returns an arbitrary set of `k` time series with each call Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/951 --- docs/MetricsQL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/MetricsQL.md b/docs/MetricsQL.md index 8461ac2f82..8aff6a92f0 100644 --- a/docs/MetricsQL.md +++ b/docs/MetricsQL.md @@ -83,7 +83,7 @@ This functionality can be tried at [an editable Grafana dashboard](http://play-g - `range_over_time(m[d])` - returns value range for `m` over `d` time window, i.e. `max_over_time(m[d])-min_over_time(m[d])`. - `median_over_time(m[d])` - calculates median values for `m` over `d` time window. Shorthand to `quantile_over_time(0.5, m[d])`. - `median(q)` - median aggregate. Shorthand to `quantile(0.5, q)`. -- `limitk(k, q)` - limits the number of time series returned from `q` to `k`. +- `limitk(k, q) by (group_labels)` - limits the number of time series returned from `q` to `k` per each `group_labels`. The returned set of `k` time series per each `group_labels` can change with each call. - `any(q) by (x)` - returns any time series from `q` for each group in `x`. - `keep_last_value(q)` - fills missing data (gaps) in `q` with the previous non-empty value. - `keep_next_value(q)` - fills missing data (gaps) in `q` with the next non-empty value.