mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-23 17:07:10 +01: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
422 B
JSON
13 lines
422 B
JSON
{
|
|
"name": "instant query with look-behind window",
|
|
"data": ["[{\"labels\":[{\"name\":\"__name__\",\"value\":\"foo\"}],\"samples\":[{\"value\":1,\"timestamp\":\"{TIME_MS-60s}\"}]}]"],
|
|
"query": ["/api/v1/query?query=foo[5m]"],
|
|
"result_query": {
|
|
"status": "success",
|
|
"data":{
|
|
"resultType":"matrix",
|
|
"result":[{"metric":{"__name__":"foo"},"values":[["{TIME_S-60s}", "1"]]}]
|
|
}
|
|
}
|
|
}
|