VictoriaMetrics/app/vmselect/prometheus
Aliaksandr Valialkin 5d66ee88bd
lib/storage: do not check the limit for -search.maxUniqueTimeseries when performing /api/v1/labels and /api/v1/label/.../values requests
This limit has little sense for these APIs, since:

- Thses APIs frequently result in scanning of all the time series on the given time range.
  For example, if extra_filters={datacenter="some_dc"} .

- Users expect these APIs shouldn't hit the -search.maxUniqueTimeseries limit,
  which is intended for limiting resource usage at /api/v1/query and /api/v1/query_range requests.

Also limit the concurrency for /api/v1/labels, /api/v1/label/.../values
and /api/v1/series requests in order to limit the maximum memory usage and CPU usage for these API.
This limit shouldn't affect typical use cases for these APIs:

- Grafana dashboard load when dashboard labels should be loaded
- Auto-suggestion list load when editing the query in Grafana or vmui

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5055
2024-01-29 16:45:12 +01:00
..
error_response.qtpl all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
error_response.qtpl.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
expand-with-exprs.qtpl docs: use persistent links to Grafana dashboards 2024-01-22 00:17:17 +02:00
expand-with-exprs.qtpl.go docs: use persistent links to Grafana dashboards 2024-01-22 00:17:17 +02:00
export.qtpl app/vmselect/prometheus: properly encode Prometheus label values at /federate endpoint 2023-12-07 15:36:01 +02:00
export.qtpl.go app/vmselect/prometheus: properly encode Prometheus label values at /federate endpoint 2023-12-07 15:36:01 +02:00
federate.qtpl app/vmselect: do not export NaN values for stale metrics at /federate endpoint 2022-10-01 19:47:37 +03:00
federate.qtpl.go app/vmselect: do not export NaN values for stale metrics at /federate endpoint 2022-10-01 19:47:37 +03:00
federate_test.go app/vmselect/prometheus: go fmt after b39e9257eb 2023-12-07 16:01:18 +02:00
federate_timing_test.go app/vmselect/prometheus: go fmt after b39e9257eb 2023-12-07 16:01:18 +02:00
label_values_response.qtpl lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:06:52 +03:00
label_values_response.qtpl.go lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:06:52 +03:00
labels_response.qtpl lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:06:52 +03:00
labels_response.qtpl.go lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:06:52 +03:00
prometheus.go lib/storage: do not check the limit for -search.maxUniqueTimeseries when performing /api/v1/labels and /api/v1/label/.../values requests 2024-01-29 16:45:12 +01:00
prometheus_test.go chore: Use http constants to replace numbers (#3846) 2023-02-22 18:53:05 -08:00
query_range_response.qtpl app/vmselect: return stats.seriesFetched as string instead of number 2023-11-01 17:49:59 +01:00
query_range_response.qtpl.go app/vmselect: run make quicktemplate-gen after b8739bc00b 2023-11-01 17:52:56 +01:00
query_response.qtpl app/vmselect: return stats.seriesFetched as string instead of number 2023-11-01 17:49:59 +01:00
query_response.qtpl.go app/vmselect: run make quicktemplate-gen after b8739bc00b 2023-11-01 17:52:56 +01:00
series_count_response.qtpl all: add support for GOARCH=386 and fix all the issues related to 32-bit architectures such as GOARCH=arm 2019-10-17 18:23:23 +03:00
series_count_response.qtpl.go all: add support for GOARCH=386 and fix all the issues related to 32-bit architectures such as GOARCH=arm 2019-10-17 18:23:23 +03:00
series_response.qtpl lib/storage: return marshaled metric names from SearchMetricNames 2022-06-28 18:17:15 +03:00
series_response.qtpl.go lib/storage: return marshaled metric names from SearchMetricNames 2022-06-28 18:17:15 +03:00
tsdb_status_response.qtpl app/vmselect: accept focusLabel query arg at /api/v1/status/tsdb 2022-06-14 18:36:54 +03:00
tsdb_status_response.qtpl.go app/vmselect: accept focusLabel query arg at /api/v1/status/tsdb 2022-06-14 18:36:54 +03:00
util.qtpl all: add initial support for query tracing 2022-06-01 02:29:23 +03:00
util.qtpl.go all: add initial support for query tracing 2022-06-01 02:29:23 +03:00