VictoriaMetrics/app/vmalert/rule
Hui Wang a84491324d
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 09:16:26 +02:00
..
alerting_test.go vmalert: fix sending alert messages (#6028) 2024-03-28 08:55:10 +01:00
alerting.go vmalert: avoid blocking APIs when alerting rule uses template functio… (#6129) 2024-04-19 09:16:26 +02:00
group_test.go vmalert: avoid blocking APIs when alerting rule uses template functio… (#6129) 2024-04-19 09:16:26 +02:00
group.go chore: fix function names in comment (#6076) 2024-04-08 01:11:12 -07:00
recording_test.go vmalert: automatically add exported_ prefix for original evaluation… (#5398) 2023-12-22 16:07:47 +01:00
recording.go vmalert: automatically add exported_ prefix for original evaluation… (#5398) 2023-12-22 16:07:47 +01:00
rule_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +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:12 +02:00
test_helpers.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
utils_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
utils.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00