VictoriaMetrics/app/vmalert
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
..
config feat: include cluster info in alert CPUThrottlingHigh (#5956) 2024-03-12 14:51:32 +04:00
datasource all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-02 23:16:29 +03:00
deployment app/vmalert: include it into the next release 2020-04-28 00:10:12 +03:00
multiarch all: run apk update && apk upgrade in base Alpine Docker image in order to get all the recent security fixes 2023-02-09 14:01:32 -08:00
notifier vmalert: support any status code from the range 200-299 from alertmanager as successful (#6111) 2024-04-16 09:33:11 +02:00
remoteread vmalert: deprecate cmd-line flag -datasource.lookback (#5877) 2024-03-12 16:16:50 +01:00
remotewrite app/vmalert: respect batch size limit for remote write on shutdown (#6039) 2024-03-29 14:27:50 +01:00
rule vmalert: avoid blocking APIs when alerting rule uses template functio… (#6129) 2024-04-19 09:16:26 +02:00
static app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:07:05 +01:00
templates all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-02 23:16:29 +03:00
tpl app/vmalert: show on UI groups error after reload config (#4543) 2023-07-03 14:59:52 +02:00
utils app/vmbackup: support client-side TLS configuration for create/delete snapshot API (#5738) 2024-02-08 15:52:00 +01:00
main.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
main_test.go all: use Gauge instead of Counter for *_config_last_reload_successful metrics 2023-12-20 14:23:42 +02:00
Makefile app/vmalert: autogenerate ALERTS_FOR_STATE time series for alerting rules with for: 0 (#5680) 2024-01-25 15:42:57 +01:00
manager.go app/vmalert: fix data race during hot-config reload (#5698) 2024-01-26 22:42:21 +01:00
manager_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
README.md 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
replay.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
replay_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
web.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
web.qtpl app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:07:05 +01:00
web.qtpl.go app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:07:05 +01:00
web_test.go all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-02 23:16:29 +03:00
web_types.go app/vmalert: support filtering for /api/v1/rule like Prometheus does (#5787) 2024-02-09 14:35:31 +01:00
web_types_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00

See vmalert docs here.

vmalert docs can be edited at docs/vmalert.md.