VictoriaMetrics/app/vmselect
Anton Tykhyy 9f67f62f96
Fix sum(aggr_over_time) 'got 1 args' error () ()
app/vmselect/promql/eval.go:evalAggrFunc shunts evaluation
of AggrFuncExpr over rollupFunc over MetricsExpr to an optimized
path. tryGetArgRollupFuncWithMetricExpr() checks whether expression
can be shunted, but it mangles the AggrFuncExpr when the aggregation
function has more than one argument. This results in queries like
`sum(aggr_over_time("avg_over_time",m))` failing with error message
'expecting at least 2 args to "aggr_over_time"; got 1 args' while
the analogous query `sum(avg_over_time(m))` executes successfully.
This fix removes the unnecessary mangling.

Signed-off-by: Anton Tykhyy <atykhyy@gmail.com>
2023-12-14 12:51:31 +02: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 Graphite vmalert wip () 2021-02-01 15:05:32 +02:00
netstorage app/vmselect/netstorage: reduce the contention at fs.ReaderAt stats collection on systems with big number of CPU cores 2023-03-25 16:44:16 -07:00
prometheus app/vmselect/prometheus: properly encode Prometheus label values at /federate endpoint 2023-12-07 16:13:48 +02:00
promql Fix sum(aggr_over_time) 'got 1 args' error () () 2023-12-14 12:51:31 +02: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 app/vmselect/searchutils: accept partial RFC3339 values at time, start and end query args 2022-12-28 19:41:54 -08:00
vmui app/vmui: UX enhancements for https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3706 2023-02-09 11:04:51 -08:00
main.go vmselect: exit early from queue on context cancel () 2023-05-08 22:58:36 -07: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/.