VictoriaMetrics/app/vmalert
Hui Wang 6ff1de89a9
vmalert: fix alert states restoration (#7624)
Previously, when the alert got resolved shortly before the vmalert
process shuts down, this could result in false alerts.

This change switches vmalert to use MetricsQL function during alerts state restore, which makes it
incompatible for state restoration with PromQL.

---------

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>
2024-11-22 09:11:31 +01:00
..
config lib/logstorage: properly take into account the end query arg when calculating time range for _time:duration filters 2024-11-08 16:43:54 +01:00
datasource vmalert: remove deprecated cmd-line flags -datasource.lookback, `da… (#6779) 2024-11-21 13:58:09 +01:00
deployment all: suppress InvalidDefaultArgInFrom warning emitted by docker build when building Docker packages via make package-* command 2024-09-03 14:00:28 +02:00
multiarch app/*/multiarch: return back empty value for TARGETARCH 2024-09-06 18:12:17 +02:00
notifier app/vmalert: improve performances when rules produce large volumes of results 2024-11-14 12:23:39 +01:00
remoteread vmalert: fix alert states restoration (#7624) 2024-11-22 09:11:31 +01:00
remotewrite vmalert: revert the default value of -remoteWrite.maxQueueSize from… (#7570) 2024-11-20 16:20:51 +01:00
rule vmalert: fix alert states restoration (#7624) 2024-11-22 09:11:31 +01:00
static app/vmalert: fix links with anchors in vmalert's UI (#6146) 2024-04-22 15:02:10 +02:00
templates app/vmalert: improve performances when rules produce large volumes of results 2024-11-14 12:23:39 +01:00
tpl app/vmalert: show on UI groups error after reload config (#4543) 2023-07-03 14:59:52 +02:00
utils app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
main.go vmalert: remove deprecated cmd-line flags -datasource.lookback, `da… (#6779) 2024-11-21 13:58:09 +01:00
main_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
Makefile vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:27:34 +02:00
manager.go app/vmalert: fix data race during hot-config reload (#5698) 2024-01-26 22:42:21 +01:00
manager_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +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 vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:27:34 +02:00
replay_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
web.go lib/httpserver: skip basic auth check for additional request paths, which should call httpserver.CheckAuthFlag() 2024-07-16 01:00:45 +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 app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
web_types.go vmalert: properly set group_name and file fields for recording rules (#7298) 2024-10-22 14:13:56 +02:00
web_types_test.go vmalert: properly set group_name and file fields for recording rules (#7298) 2024-10-22 14:13:56 +02:00

See vmalert docs here.

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