Question Details

No question body available.

Tags

promql victoriametrics metricsql

Answers (1)

October 30, 2025 Score: 1 Rep: 867 Quality: Low Completeness: 70%

It represents the average value between Jan 1 2022 and Dec 31 2022.

You can find more details on how range queries are processed here https://docs.victoriametrics.com/keyConcepts.html#range-query.

I'd recommend updating your query to the following:

avgovertime(numeric{bomid = "id1", entryid = "id2"}[1y])

It explicitly defines [1y] look-behind window. It works like that in your query too, but [1y] is implicitly added based on specified step.

Query above executed at specific will calculate the avg value on range from to . In other words, it always looks behind.