prometheus/notifier
Simon Pasquier 8bd6ae1b20 Notifier: fix deadlock when zero alerts
When all alerts were dropped after alert relabeling, the `sendAll()`
function didn't release the lock properly which created a deadlock with
the Alertmanager target discovery.

In addition, the commit detects early when there are no Alertmanager
endpoint to notify to avoid unnecessary work.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-03-29 15:44:05 +01:00
..
notifier_test.go Notifier: fix deadlock when zero alerts 2024-03-29 15:44:05 +01:00
notifier.go Notifier: fix deadlock when zero alerts 2024-03-29 15:44:05 +01:00