From d39915ff8e863209d5b1fb3d149cba7daa7488b9 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 16 Aug 2022 12:08:55 +0300 Subject: [PATCH] docs/MetricsQL.md: add `the list of supported ... functions` lines just before the corresponding lists This improves the readability a bit --- docs/MetricsQL.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/MetricsQL.md b/docs/MetricsQL.md index 2fb5f7cdb5..329b3f15a3 100644 --- a/docs/MetricsQL.md +++ b/docs/MetricsQL.md @@ -80,6 +80,8 @@ MetricsQL provides the following functions: See also [implicit query conversions](#implicit-query-conversions). +The list of supported rollup functions: + #### absent_over_time `absent_over_time(series_selector[d])` returns 1 if the given lookbehind window `d` doesn't contain raw samples. Otherwise it returns an empty result. This function is supported by PromQL. See also [present_over_time](#present_over_time). @@ -377,6 +379,8 @@ See also [implicit query conversions](#implicit-query-conversions). See also [implicit query conversions](#implicit-query-conversions). +The list of supported transform functions: + #### abs `abs(q)` calculates the absolute value for every point of every time series returned by `q`. This function is supported by PromQL. @@ -717,6 +721,8 @@ See also [implicit query conversions](#implicit-query-conversions). See also [implicit query conversions](#implicit-query-conversions). +The list of supported label manipulation functions: + #### alias `alias(q, "name")` sets the given `name` to all the time series returned by `q`. For example, `alias(up, "foobar")` would rename `up` series to `foobar` series. @@ -803,6 +809,8 @@ sum by (__name__) ( See also [implicit query conversions](#implicit-query-conversions). +The list of supported aggregate functions: + #### any `any(q) by (group_labels)` returns a single series per `group_labels` out of time series returned by `q`. See also [group](#group).