VictoriaMetrics/app
Roman Khavronenko 43a7984cd8
vmalert: correctly calculate alert ID including extra labels (#1734)
Previously, ID for alert entity was generated without alertname or groupname.
This led to collision, when multiple alerting rules within the same group
producing same labelsets. E.g. expr: `sum(metric1) by (job) > 0` and
expr: `sum(metric2) by (job) > 0` could result into same labelset `job: "job"`.

The issue affects only UI and Web API parts of vmalert, because alert ID is used
only for displaying and finding active alerts. It does not affect state restore
procedure, since this label was added right before pushing to remote storage.

The change now adds all extra labels right after receiving response from the datasource.
And removes adding extra labels before pushing to remote storage.

Additionally, change introduces a new flag `Restored` which will be displayed in UI
for alerts which have been restored from remote storage on restart.
2021-10-22 12:30:38 +03:00
..
victoria-metrics lib/httpserver: expose command-line flags at /flags page 2021-10-20 00:45:09 +03:00
vmagent lib/httpserver: expose command-line flags at /flags page 2021-10-20 00:45:09 +03:00
vmalert vmalert: correctly calculate alert ID including extra labels (#1734) 2021-10-22 12:30:38 +03:00
vmauth app/vmauth: fix metric name prefixes: vmagent -> vmauth 2021-10-19 15:29:07 +03:00
vmbackup app/{vmbackup,vmrestore}: switch from gcs://... to gs://... urls for backups to GCS 2021-09-29 12:10:29 +03:00
vmbackupmanager app/{vmbackup,vmrestore}: switch from gcs://... to gs://... urls for backups to GCS 2021-09-29 12:10:29 +03:00
vmctl vmctl: follow-up after 95d1d38595 (#1718) 2021-10-18 15:10:44 +03:00
vmgateway docs/{vmgateway,vmbackupmanager}: mention that enterprise binaries are free for download and evaluation 2021-08-27 14:54:09 +03:00
vminsert app/vmagent: expose -promscrape.config contents at /config page as Prometheus does 2021-10-12 16:25:37 +03:00
vmrestore app/{vmbackup,vmrestore}: switch from gcs://... to gs://... urls for backups to GCS 2021-09-29 12:10:29 +03:00
vmselect vmui: query history (#1732) 2021-10-22 12:21:22 +03:00
vmstorage app/{vminsert,vmstorage}: follow-up after a171916ef5 2021-10-08 14:35:49 +03:00
vmui vmui: query history (#1732) 2021-10-22 12:21:22 +03:00