VictoriaMetrics/app
Roman Khavronenko 214e01499c
promql: return step as scrapeInterval when it can't be calculated (#2865)
The change allows to specify default value for `getScrapeInterval`
function when actual interval can't be calculated.

Before the change, function were returning `maxSilenceInterval` (5m)
in such cases, which may be not correct for instant queries processing.
The specific scenario where using `maxSilenceInterval` caused issues
is the following:
1. Series becomes stale;
2. Client (in this case vmalert) continues to request series every 15s;
3. Database returns empty results as expected;
4. But at some specific moment of time database returns datapoints from `now()-5m`,
because lookback window was extended to `maxSilenceInterval`.

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2022-07-13 12:34:28 +03:00
..
vmagent docs: make more clear the relation between replication and deduplication 2022-07-11 19:23:24 +03:00
vmalert all: make fmt via the upcoming Go1.19 2022-07-11 19:23:25 +03:00
vmauth docs: update docs after e4d6b750f6 2022-06-21 14:01:25 +03:00
vmbackup docs: update -help output for vmbackup, vmbackupmanager, vmgateway and vmrestore components 2022-06-21 15:49:26 +03:00
vmbackupmanager docs: update -help output for vmbackup, vmbackupmanager, vmgateway and vmrestore components 2022-06-21 15:49:26 +03:00
vmctl all: make fmt via the upcoming Go1.19 2022-07-11 19:23:25 +03:00
vmgateway docs: update -help output for vmbackup, vmbackupmanager, vmgateway and vmrestore components 2022-06-21 15:49:26 +03:00
vminsert app/{vmagent,vminsert}: follow-up after d19e46de55 2022-07-07 01:32:11 +03:00
vmrestore docs: update -help output for vmbackup, vmbackupmanager, vmgateway and vmrestore components 2022-06-21 15:49:26 +03:00
vmselect promql: return step as scrapeInterval when it can't be calculated (#2865) 2022-07-13 12:34:28 +03:00
vmstorage lib/vmselectapi: pass storage.SearchQuery to API calls instead of []*storage.TagFilters + storage.TimeRange + maxMetrics 2022-07-06 12:46:22 +03:00
vmui all: make fmt via the upcoming Go1.19 2022-07-11 19:23:25 +03:00