VictoriaMetrics/app
Roman Khavronenko 6939c53e48
app/vmselect: set proper timestamp for cached instant responses (#5723)
* app/vmselect: set proper timestamp for cached instant responses

The change updates `getSumInstantValues` to prefer timestamp
from the most recent results. Before, timestamp from cached series
was used.

The old behavior had negative impact on recording rules as they
were getting responses with shifted timestamps in past.
Subsequent recording or alerting rules fetching results of these
recording rules could get no result due to staleness interval.

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5659
Signed-off-by: hagen1778 <roman@victoriametrics.com>

* wip

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2024-01-30 20:03:34 +00:00
..
victoria-logs lib/pushmetrics: wait until the background goroutines, which push metrics, are stopped at pushmetrics.Stop() 2024-01-15 13:50:36 +02:00
victoria-metrics app/vmselect: properly calculate start param for queries with too big look-behind window (#5630) 2024-01-17 13:48:06 +01:00
vlinsert Add _stream fields log (#5068) 2023-11-17 15:58:52 +01:00
vlselect vmui: reduced the number of server requests (#5253) 2023-11-14 01:50:00 +01:00
vlstorage lib/logstorage: follow-up for 8a23d08c21 2023-10-02 16:52:23 +02:00
vmagent app/vmagent/remotewrite: limit the concurrency for marshaling time series before sending them to remote storage 2024-01-30 12:18:19 +02:00
vmalert vmalert: set ActiveAt to evaluation timestamp in newAlert fn (#5657) 2024-01-29 12:02:02 +01:00
vmalert-tool vmalert-tool: fix alert_rule_test case when eval_time is not multiple of evaluation_interval (#5387) 2023-12-01 12:17:24 +01:00
vmauth app/vmauth: return 503 service unavailable status code when the backend returns response with unsupported status code, but the request cannot be re-tried. 2024-01-26 20:43:11 +01:00
vmbackup lib/pushmetrics: wait until the background goroutines, which push metrics, are stopped at pushmetrics.Stop() 2024-01-15 13:50:36 +02:00
vmbackupmanager docs: convert png images to webp in all the docs except of docs/operator/* 2023-11-22 19:21:00 +02:00
vmctl app/vmctl/backoff: fix flaky test 2024-01-22 12:21:14 +01:00
vmgateway docs: convert png images to webp in all the docs except of docs/operator/* 2023-11-22 19:21:00 +02:00
vminsert all: allow dynamically reading *AuthKey flag values from files and urls 2024-01-21 22:03:38 +02:00
vmrestore lib/pushmetrics: wait until the background goroutines, which push metrics, are stopped at pushmetrics.Stop() 2024-01-15 13:50:36 +02:00
vmselect app/vmselect: set proper timestamp for cached instant responses (#5723) 2024-01-30 20:03:34 +00:00
vmstorage lib/{mergeset,storage}: make background merge more responsive and scalable 2024-01-26 22:27:47 +01:00
vmui vmui: add the ability to expand all tracing entries (#5677) (#5726) 2024-01-30 19:10:10 +00:00