VictoriaMetrics/app
Roman Khavronenko 2b59fff526
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-06 20:24:45 +02:00
..
victoria-metrics issue-2323: Fixed Incorrect Content-Type header 'text/plain' for root path (#2343) 2022-03-21 08:13:28 +00:00
vmagent app/vmagent: properly initialize stdDialer 2022-04-06 13:57:20 +03:00
vmalert vmalert: fix labels and annotations processing for alerts (#2403) 2022-04-06 20:24:45 +02:00
vmauth app: sync Markdown changes from a8de1ab000 2022-03-22 14:11:18 +02:00
vmbackup app: sync Markdown changes from a8de1ab000 2022-03-22 14:11:18 +02:00
vmbackupmanager app: sync Markdown changes from a8de1ab000 2022-03-22 14:11:18 +02:00
vmctl vmctl verify-blocks command (#2390) 2022-04-05 16:01:32 +02:00
vmgateway app: sync Markdown changes from a8de1ab000 2022-03-22 14:11:18 +02:00
vminsert vmctl verify-blocks command (#2390) 2022-04-05 16:01:32 +02:00
vmrestore app: sync Markdown changes from a8de1ab000 2022-03-22 14:11:18 +02:00
vmselect app/vmselect: make vmui-update 2022-04-01 12:55:21 +03:00
vmstorage lib/{storage,regexpcache}: replaces regexpCacheMap with LRU cache (#2293) 2022-03-26 12:54:50 +02:00
vmui build(deps): bump react-router-dom in /app/vmui/packages/vmui (#2394) 2022-04-01 12:53:50 +03:00