VictoriaMetrics/app
Roman Khavronenko 4de1b2b74a
vmalert: fix labels and annotations processing for alerts (#2403)
To improve compatibility with Prometheus alerting the order of
templates processing has changed.
Before, vmalert did all labels processing beforehand. It meant
all extra labels (such as `alertname`, `alertgroup` or rule labels)
were available in templating. All collisions were resolved in favour
of extra labels.
In Prometheus, only labels from the received metric are available in
templating, so no collisions are possible.
This change makes vmalert's behaviour similar to Prometheus.

For example, consider alerting rule which is triggered by time series
with `alertname` label. In vmalert, this label would be overriden
by alerting rule's name everywhere: for alert labels, for annotations, etc.
In Prometheus, it would be overriden for alert's labels only, but in annotations
the original label value would be available.

See more details here https://github.com/prometheus/compliance/issues/80

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2022-04-07 15:24:06 +03:00
..
vmagent app/vmagent: properly initialize stdDialer 2022-04-06 14:00:50 +03:00
vmalert vmalert: fix labels and annotations processing for alerts (#2403) 2022-04-07 15:24:06 +03:00
vmauth app: sync Markdown changes from a8de1ab000 2022-03-22 14:12:03 +02:00
vmbackup app: sync Markdown changes from a8de1ab000 2022-03-22 14:12:03 +02:00
vmbackupmanager app: sync Markdown changes from a8de1ab000 2022-03-22 14:12:03 +02:00
vmctl vmctl verify-blocks command (#2390) 2022-04-05 17:46:36 +03:00
vmgateway app: sync Markdown changes from a8de1ab000 2022-03-22 14:12:03 +02:00
vminsert vmctl verify-blocks command (#2390) 2022-04-05 17:46:36 +03:00
vmrestore app: sync Markdown changes from a8de1ab000 2022-03-22 14:12:03 +02:00
vmselect app/vmselect: make vmui-update 2022-04-01 12:55:53 +03:00
vmstorage lib/{storage,regexpcache}: replaces regexpCacheMap with LRU cache (#2293) 2022-03-26 12:57:27 +02:00
vmui build(deps): bump react-router-dom in /app/vmui/packages/vmui (#2394) 2022-04-01 12:54:10 +03:00