VictoriaMetrics/app
Roman Khavronenko 622bbedbe1
vmalert: always re-evaluate Annotations (#3119)
* vmalert: always re-evaluate Annotations

Previously, Annotations were evaluated only:
1. On alert creating.
2. On alert's value change.

This is premature optimization. It was assumed that since annotations
could contain only text with alert's labels or value - there is no need
in spending resources to re-compile Annotations.

Later, template function `query` was added, which can execute
arbitrary queries and return different results on every evaluation.
So if it was used in annotations, it would be executed only on init
or value change.

Another case when optimization caused an issue - annotations hot reload.
In this case, annotations of the active alert won't change even if Rule's
annotations were changed.

This fix enables Annotations re-evaluation on each iteration to resolve
issues above. It would have some impact on performance, but it is unlikely
it will be noticeable.

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

* vmalert: add tp Changelog

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

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2022-09-16 16:19:10 +02:00
..
victoria-metrics app/victoria-metrics: replace ioutil package with os package (#2993) 2022-08-21 23:41:31 +03:00
vmagent docs: update docs with explicitly marked enterprise command-line flags for VictoriaMetrics and vmagent 2022-09-15 13:22:56 +03:00
vmalert vmalert: always re-evaluate Annotations (#3119) 2022-09-16 16:19:10 +02:00
vmauth docs/vmauth.md: update -help output after explicit marking of enterprise flags 2022-09-15 13:22:57 +03:00
vmbackup docs: update -help output after explicit mentioning of enterprise flags 2022-09-15 13:22:57 +03:00
vmbackupmanager docs: update -help output after explicit mentioning of enterprise flags 2022-09-15 13:22:57 +03:00
vmctl app/vmctl: add description about influx-skip-database-label flag (#3111) 2022-09-15 10:46:54 +02:00
vmgateway docs: update -help output after explicit mentioning of enterprise flags 2022-09-15 13:22:57 +03:00
vminsert lib/promscrape: follow-up after 2c553d5a2f 2022-08-08 14:46:26 +03:00
vmrestore docs: update -help output after explicit mentioning of enterprise flags 2022-09-15 13:22:57 +03:00
vmselect vmselect/promql: add alphanumeric sort by label (sort_by_label_numeric) (#2982) 2022-09-14 17:41:09 +03:00
vmstorage app/vmstorage: expose vm_{hourly,daily}_series_limit_{max,current}_series metrics if -storage.max{Hourly,Daily}Series limits are set 2022-08-24 13:44:04 +03:00
vmui vmui: fix query params saving in URL (#3104) 2022-09-13 17:05:26 +02:00