VictoriaMetrics/app/vmselect
Roman Khavronenko e1c3267e34
vmselect/promql: check for deadline in count_values fn (#3806)
* vmselect/promql: check for deadline in `count_values` fn

`count_values` could be very slow during the data processing.
Checking for deadline between iterations supposed to reduce
probability of exceeding `search.maxQueryDuration`.

The change also adds a new trace record, which captures the time
spent in aggregation function. Before that, the trace for aggr funcs
could be confusing since it doesn't account for all the places where
time was spent.

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 16:59:26 -08:00
..
bufferedwriter lib/netutil: move IsTrivialNetworkError() function there, since it is used in multiple places across the code 2023-01-27 13:24:30 -08:00
graphite all: use metricsql.CompileRegexp instead of regexp.Compile for compiling regexps used in graphite queries 2023-01-09 21:43:08 -08:00
graphiteql app,lib: fix typos in comments (#3804) 2023-02-13 13:27:13 +01:00
netstorage app,lib: fix typos in comments (#3804) 2023-02-13 13:27:13 +01:00
prometheus app/vmselect: add -search.logQueryMemoryUsage command-line flag for logging queries, which take big amounts of memory 2023-02-23 18:47:08 -08:00
promql vmselect/promql: check for deadline in count_values fn (#3806) 2023-02-24 16:59:26 -08:00
querystats app/vmselect: do not track queries with less than 1ms execution time at /api/v1/status/top_queries 2021-07-15 16:44:28 +03:00
searchutils chore: Use http constants to replace numbers (#3846) 2023-02-22 18:53:05 -08:00
vmui app/vmselect/vmui: make vmui-update after d4fc0ed874 2023-02-23 19:25:52 -08:00
main.go app/vmselect: add -search.logQueryMemoryUsage command-line flag for logging queries, which take big amounts of memory 2023-02-23 18:47:08 -08:00
README.md app/vmui: move source code from https://github.com/VictoriaMetrics/vmui to app/vmui 2021-07-09 17:15:23 +03:00
vmui.go app/vmselect: follow-up after 820312a2b1 2023-01-11 23:28:00 -08:00

vmselect performs the incoming queries and fetches the required data from vmstorage.

The vmui directory contains static contents built from app/vmui package with make vmui-update command. The vmui page is available at http://<victoria-metrics>:8428/vmui/.