mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
There are following main use cases for `eval_offset`: 1. To ensure rules are evaluated at an exact offset, so the results have the exact timestamp the user wants. 2. The source data for a certain rule is delivered at a specific time point, so rules need to be executed after that time point to get correct results. For example, [chaining groups](https://docs.victoriametrics.com/victoriametrics/vmalert/#chaining-groups). 3. A group contains some heavy rules that can take a few minutes to finish. To guarantee a single evaluation can complete in time and not delay the next run, the user may want to schedule the group to be executed within [intervalStart, intervalEnd-avgTotalEvaluationDuration]. Negative value can be convenient for case3, as users only need to set group `eval_offset: -avgTotalEvaluationDuration(a bigger value than the real duration to leave some buffer would be better)`. fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10424