VictoriaMetrics/app
Aliaksandr Valialkin bb7406e9c0
app/vmselect/promql: follow-up for dd0d2c77c8 and 6149adbe10
Use metricsql.IsLikelyInvalid() function for determining whether the given query is likely invalid,
e.g. there is high change the query is incorrectly written, so it will return unexpected results.

The query is invalid most of the time if it passes something other than series selector into rollup function.
For example:

- rate(sum(foo))
- rate(foo + bar)
- rate(foo > bar)

Improtant note: the query is considered valid if it misses the lookbehind window in square brackes inside rollup function,
e.g. rate(foo), since this is very convenient MetricsQL extention to PromQL, and this query returns the expected results
most of the time.

Other unsafe query types can be added in the future into metricsql.IsLikelyInvalid().

TODO: probably, the -search.disableImplicitConversion command-line flag must be set by default in the future releases of VictoriaMetrics.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4338
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6180
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6450
2024-07-03 00:46:56 +02:00
..
victoria-logs deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:29:14 +02:00
vlinsert app/vlinsert/insertutils: flush the ingested logs from in-memory buffer to storage every second 2024-07-02 01:39:45 +02:00
vlogsgenerator lib/logstorage: work-in-progress 2024-05-25 00:31:55 +02:00
vlselect lib/logstorage: add stream_context pipe, which allows selecting surrounding logs for the matching logs 2024-06-28 19:15:19 +02:00
vlstorage lib/logstorage: work-in-progress 2024-06-27 14:21:03 +02:00
vmagent lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 15:01:49 +02:00
vmalert deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:29:14 +02:00
vmalert-tool deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:29:14 +02:00
vmauth app/vmauth: reader pool to reduce gc & mem alloc (#6533) 2024-07-02 14:37:15 +02:00
vmbackup deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:29:14 +02:00
vmbackupmanager all: replace old https://docs.victoriametrics.com/vmbackupmanager.html url with the new one - https://docs.victoriametrics.com/vmbackupmanager/ 2024-04-18 02:04:39 +02:00
vmctl app/vmctl/prometheus/prometheus.go: add missing arg to tsdb.OpenDBReadOnly() function after updating github.com/prometheus/prometheus dependency from v0.52.1 to v0.53.0 in 5c55722db4 2024-06-24 23:16:30 +02:00
vmgateway all: replace old https://docs.victoriametrics.com/vmgateway.html url with the new one - https://docs.victoriametrics.com/vmgateway/ 2024-04-18 02:08:53 +02:00
vminsert deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:29:14 +02:00
vmrestore deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:29:14 +02:00
vmselect app/vmselect/promql: follow-up for dd0d2c77c8 and 6149adbe10 2024-07-03 00:46:56 +02:00
vmstorage lib/mergeset: adds tracking for indexdb records drop (#6297) 2024-05-24 16:08:34 +02:00
vmui deployment/docker: update Go builder from Go1.22.4 to Go1.22.5 2024-07-03 00:07:55 +02:00