VictoriaMetrics/app
Roman Khavronenko 723d90536c
vmselect: limit end param max value by 2d in future (#2729)
* vmselect: limit `end` param max value by 2d in future

The change is applied only to service handlers like `/labels` or `/series`
and limits the `end` param by max value <= now() + 2 days. The same limit
is applied for the ingested data, so no reason to allow to request data
in future far than that.

The change is also needed for corner cases like https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2669
where too high `end` value triggers inefficient global index search.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* docs/CHANGELOG.md: document the bugfix

Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2022-06-16 20:46:31 +03:00
..
victoria-metrics all: follow-up after 8edb390e21 2022-06-07 00:57:09 +03:00
vmagent docs/vmagent.md: typo fix: configued -> configured 2022-06-16 20:30:30 +03:00
vmalert docs: add multiple-remote-writes topology to vmalert (#2738) 2022-06-16 13:30:28 +02:00
vmauth lib/httpserver: clarify that -tls flag enables TLS for http requests to -httpListenAddr 2022-04-16 16:59:26 +03:00
vmbackup vmbackup: Prevent save backups to the same folder where TSDB data is (#2547) 2022-05-06 18:04:09 +03:00
vmbackupmanager docs: add flags list to vmbackupmanager (#2554) 2022-05-08 12:18:39 +00:00
vmctl docs: mention guide for migrating from inlfux in vmctl readme (#2640) 2022-05-25 13:28:56 +02:00
vmgateway app: sync Markdown changes from a8de1ab000 2022-03-22 14:11:18 +02:00
vminsert Added a stub for datadog endpoint (#2710) 2022-06-13 09:52:13 +03:00
vmrestore app: sync Markdown changes from a8de1ab000 2022-03-22 14:11:18 +02:00
vmselect vmselect: limit end param max value by 2d in future (#2729) 2022-06-16 20:46:31 +03:00
vmstorage app/vmselect: accept focusLabel query arg at /api/v1/status/tsdb 2022-06-14 18:36:54 +03:00
vmui lib/storage: show top labels with the highest number of series in cardinality explorer 2022-06-14 16:32:38 +03:00