VictoriaMetrics/app/vmselect/promql
Zakhar Bessarab 44b071296d
vmselect: add support of multi-tenant queries (#6346)
### Describe Your Changes

Added an ability to query data across multiple tenants. See:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1434

Currently, the following endpoints work with multi-tenancy:
- /prometheus/api/v1/query
- /prometheus/api/v1/query_range
- /prometheus/api/v1/series
- /prometheus/api/v1/labels
- /prometheus/api/v1/label/<label_name>/values
- /prometheus/api/v1/status/active_queries
- /prometheus/api/v1/status/top_queries
- /prometheus/api/v1/status/tsdb
- /prometheus/api/v1/export
- /prometheus/api/v1/export/csv
- /vmui


A note regarding VMUI: endpoints such as `active_queries` and
`top_queries` have been updated to indicate whether query was a
single-tenant or multi-tenant, but UI needs to be updated to display
this info.
cc: @Loori-R 

---------

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
Signed-off-by: f41gh7 <nik@victoriametrics.com>
Co-authored-by: f41gh7 <nik@victoriametrics.com>
2024-10-01 16:37:18 +02:00
..
active_queries.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
aggr_incremental_test.go app/vmselect/promql: fix TestIncrementalAggr test on systems less than 3 CPU cores 2023-03-20 20:37:44 -07:00
aggr_incremental.go app/vmselect/promql/aggr_incremental.go: eliminate unnecessary memory allocation in incrementalAggrFuncContext.updateTimeseries 2024-01-23 02:29:13 +02:00
aggr_test.go app/vmselect/promql: simplify the code after 388d020b7c 2024-01-16 22:35:51 +02:00
aggr.go all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-03 03:00:45 +03:00
binary_op.go app/vmselect: use strings.EqualFold instead of strings.ToLower where appropriate 2024-05-12 10:21:24 +02:00
eval_test.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
eval.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
exec_test.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
exec.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
memory_limiter_test.go
memory_limiter.go
parser.go all: add support for or filters in series selectors 2023-07-15 23:56:18 -07:00
rollup_result_cache_test.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
rollup_result_cache.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
rollup_test.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:23:26 +02:00
rollup_timing_test.go
rollup.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
timeseries_test.go app/vmselect/promql: use unsafe.Slice instead of deprecated reflect.SliceHeader 2024-02-29 17:51:16 +02:00
timeseries.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
transform_test.go app/vmseleсt/promql: fix calculation of histogram buckets 2024-08-15 10:13:54 +02:00
transform.go app/vmselect/promql: consistently replace NaN data points with non-NaN values for range_first and range_last functions 2024-09-23 15:00:05 +02:00
tzdata.go all: cleanup: remove // +build ... lines, since they are no longer needed after Go1.17, and the minimum supported Go version for VictoriaMetrics source code is Go1.20 2023-11-13 19:15:42 +01:00