VictoriaMetrics/app
Roman Khavronenko dac21d874b
metricsql: support optional 2nd argument for rollup functions (#3841)
* metricsql: support optional 2nd argument for rollup functions

Support optional 2nd argument `min`, `max` or `avg` for rollup functions:
 * rollup
 * rollup_delta
 * rollup_deriv
 * rollup_increase
 * rollup_rate
 * rollup_scrape_interval

 If second argument is passed, then rollup function will return only the selected aggregation type.
 This change can be useful for situations where only one type of rollup calculation is needed.
 For example, `rollup_rate(requests_total[5m], "max")`.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* wip

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2023-02-24 13:47:52 -08:00
..
victoria-metrics all: consistently use http.Method{Get,Post,Put} across the codebase 2023-02-22 18:58:46 -08:00
vmagent docs: update --help descriptions after recent changes 2023-02-23 19:02:27 -08:00
vmalert all: consistently use http.Method{Get,Post,Put} across the codebase 2023-02-22 18:58:46 -08:00
vmauth all: consistently use http.Method{Get,Post,Put} across the codebase 2023-02-22 18:58:46 -08:00
vmbackup all: run apk update && apk upgrade in base Alpine Docker image in order to get all the recent security fixes 2023-02-09 14:01:32 -08:00
vmbackupmanager doc: add vmbackupmanager monitoring section (#3605) 2023-01-05 16:03:06 +01:00
vmctl all: consistently use http.Method{Get,Post,Put} across the codebase 2023-02-22 18:58:46 -08:00
vmgateway vmgateway: add support of JWKS endpoint usage for JWT keys verification (#521) 2023-02-20 19:22:55 -08:00
vminsert app/vmagent: automatically detect whether the remote storage supports VictoriaMetrics remote write protocol 2023-02-23 17:36:55 -08:00
vmrestore all: run apk update && apk upgrade in base Alpine Docker image in order to get all the recent security fixes 2023-02-09 14:01:32 -08:00
vmselect metricsql: support optional 2nd argument for rollup functions (#3841) 2023-02-24 13:47:52 -08:00
vmstorage tests: use DebugFlush instead of vmstorage stop. This simplifies the logic and allows to remove test-only methodds (#3694) 2023-01-23 14:45:59 +01:00
vmui vmui: improve mobile ui (#3848) 2023-02-23 19:18:49 -08:00