VictoriaMetrics/app/vmalert/rule
Hui Wang e0d47ab6af
vmalert: avoid blocking APIs when alerting rule uses template functio… (#6129)
* vmalert: avoid blocking APIs when alerting rule uses template function `query`

* app/vmalert: small refactoring

* simplify labels and templates expanding
* simplify `newAlert` interface
* fix `TestGroupStart` which mistakenly skipped annotations
and response labels check

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* reduce alerts lock time when restore

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: hagen1778 <roman@victoriametrics.com>
2024-04-19 11:30:40 +02:00
..
alerting_test.go vmalert: fix sending alert messages (#6028) 2024-04-02 23:51:06 +03:00
alerting.go vmalert: avoid blocking APIs when alerting rule uses template functio… (#6129) 2024-04-19 11:30:40 +02:00
group_test.go vmalert: avoid blocking APIs when alerting rule uses template functio… (#6129) 2024-04-19 11:30:40 +02:00
group.go chore: fix function names in comment (#6076) 2024-04-08 15:38:51 +02:00
recording_test.go vmalert: automatically add exported_ prefix for original evaluation… (#5398) 2023-12-22 16:10:33 +01:00
recording.go vmalert: automatically add exported_ prefix for original evaluation… (#5398) 2023-12-22 16:10:33 +01:00
rule_test.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00
rule.go all: replace old https://docs.victoriametrics.com/vmalert.html url with the new one - https://docs.victoriametrics.com/vmalert/ 2024-04-18 01:44:54 +02:00
test_helpers.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00
utils_test.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00
utils.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00