mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
cf03e11d89
Properly determine time range search for instant queries with too big look-behind window like `foo[100y]`. Previously, such queries could return empty responses even if `foo` is present in database. https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5553 Signed-off-by: hagen1778 <roman@victoriametrics.com>
13 lines
563 B
JSON
13 lines
563 B
JSON
{
|
|
"name": "too big look-behind window",
|
|
"issue": "https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5553",
|
|
"data": ["[{\"labels\":[{\"name\":\"__name__\",\"value\":\"foo\"},{\"name\":\"issue\",\"value\":\"5553\"}],\"samples\":[{\"value\":1,\"timestamp\":\"{TIME_MS-60s}\"}]}]"],
|
|
"query": ["/api/v1/query?query=foo{issue=\"5553\"}[100y]"],
|
|
"result_query": {
|
|
"status": "success",
|
|
"data":{
|
|
"resultType":"matrix",
|
|
"result":[{"metric":{"__name__":"foo", "issue": "5553"},"values":[["{TIME_S-60s}", "1"]]}]
|
|
}
|
|
}
|
|
}
|