VictoriaMetrics/app
Roman Khavronenko c7f3e58032 vmalert: avoid sending resolves for pending alerts (#498)
Before the change we were sending notifications to notifier
if following conditions are met:
* alert is in Fire state
* alert is in Inactive state

We were sending Inactive notifications to resolve alert ASAP. 
Unfortunately, we were sending resolves for Pending alerts that become
Inactive, which is wrong.

In this change we delete alert from the active list if
it was Pending and become Inactive. In this way we now
have Inactive alerts only if they were in state Fire before.
See test change for example.
2020-05-19 11:55:00 +03:00
..
vmagent all: print --help output to stdout instead of stderr 2020-05-16 12:03:06 +03:00
vmalert vmalert: avoid sending resolves for pending alerts (#498) 2020-05-19 11:55:00 +03:00
vmauth all: print --help output to stdout instead of stderr 2020-05-16 12:03:06 +03:00
vmbackup all: print --help output to stdout instead of stderr 2020-05-16 12:03:06 +03:00
vminsert all: print --help output to stdout instead of stderr 2020-05-16 12:03:06 +03:00
vmrestore all: print --help output to stdout instead of stderr 2020-05-16 12:03:06 +03:00
vmselect all: print --help output to stdout instead of stderr 2020-05-16 12:03:06 +03:00
vmstorage all: print --help output to stdout instead of stderr 2020-05-16 12:03:06 +03:00