VictoriaMetrics/app/vmalert/templates
Hui Wang 282f13cf11
app/vmalert: improve performances when rules produce large volumes of results
1. Avoid storing the last evaluation results outside of rules, check for
stale time series as soon as possible;
2. remove duplicated template `Clone()`.

This pull request is primarily reducing memory usage when rules produce
large volumes of results, as seen in
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6894.
The CPU time spent on garbage collection remains high and may be
addressed in a separate PR.
2024-11-14 18:21:20 +01:00
..
templates added reusable templates support (#2532) 2022-05-20 12:25:11 +03:00
funcs.qtpl app/vmalert/templates: properly escape all the special chars in quotesEscape function 2022-10-28 00:08:50 +03:00
funcs.qtpl.go app/vmalert/templates: properly escape all the special chars in quotesEscape function 2022-10-28 00:08:50 +03:00
template.go app/vmalert: improve performances when rules produce large volumes of results 2024-11-14 18:21:20 +01:00
template_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00