docs/MetricsQL.md: add the list of supported ... functions lines just before the corresponding lists

This improves the readability a bit
This commit is contained in:
Aliaksandr Valialkin 2022-08-16 12:08:55 +03:00
parent 8b3989ba39
commit e0e7c14788
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -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).