VictoriaMetrics/app/vmalert
Hui Wang bd11e00a59
app/vmalert: properly register group and rules metrics
Commit 9ca74d1fff introduced an issue with metrics registration. Due to metrics.Summary type always registered at the global state of metrics package, vmalert had increased memory and CPU usage after multiple configuration reloads.

 This commit addresses this issue and properly registers metrics.Summary metric. Now metrics for group and rules must be explicitly registered before group.Start with group.Init method. It simplifies metrics usage an ensures that all needed metrics were registered and group is ready to start.

Related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/8532
2025-03-19 13:57:34 +01:00
..
config spelling and grammar fixes via codespell () 2025-03-17 16:32:10 +01:00
datasource vmalert: remove deprecated cmd-line flags -datasource.lookback, `da… () 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: fix memory leak with -notifier.blackhole 2025-03-19 10:43:57 +01:00
remoteread vmalert: fix alert states restoration () 2024-11-22 09:11:31 +01:00
remotewrite app/vmalert: mention that remoteWrite.concurrency depends on CPU 2025-02-01 22:10:47 +01:00
rule app/vmalert: properly register group and rules metrics 2025-03-19 13:57:34 +01:00
static app/vmalert: fix links with anchors in vmalert's UI () 2024-04-22 15:02:10 +02:00
templates lib/promutils: move time-related funcs from promutils to timeutil () 2025-03-03 10:25:42 +01:00
tpl app/vmalert: show on UI groups error after reload config () 2023-07-03 14:59:52 +02:00
utils app/vmalert: properly unregister exposed metrics for alerting rules 2025-02-21 10:36:29 +01:00
main.go app/vmalert: properly unregister exposed metrics for alerting rules 2025-02-21 10:36:29 +01:00
main_test.go app/vmalert: properly register group and rules metrics 2025-03-19 13:57:34 +01:00
Makefile vmalert: allow omitting -replay.timeTo in replay mode, default valu… () 2024-07-05 09:27:34 +02:00
manager.go app/vmalert: properly register group and rules metrics 2025-03-19 13:57:34 +01:00
manager_test.go app/vmalert: fix possible data race on group checksum 2025-03-19 12:58:51 +01: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… () 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 spelling and grammar fixes via codespell () 2025-03-17 16:32:10 +01:00
web.qtpl.go spelling and grammar fixes via codespell () 2025-03-17 16:32:10 +01:00
web_test.go app/vmalert: fix possible data race on group checksum 2025-03-19 12:58:51 +01:00
web_types.go app/vmalert: fix possible data race on group checksum 2025-03-19 12:58:51 +01:00
web_types_test.go app/vmalert: fix possible data race on group checksum 2025-03-19 12:58:51 +01:00

See vmalert docs here.

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