prometheus/notifier
Justin Cichra 78599d0ec6 notifier: Consider alert relabeling when deciding if alerts are dropped
When intentionally dropping all alerts in a batch, `SendAll` returns
false, increasing the dropped_total metric.

This makes it difficult to tell if there is a connection issue between
Prometheus and AlertManager or a result of intentionally dropping alerts.

Have `SendAll` return `true` when no batches were sent by keeping track
of the number of AlertManager request attempts.

If no attempts were made, then the send is successful.

Fixes: #15978

Signed-off-by: Justin Cichra <jcichra@cloudflare.com>
2025-02-26 09:05:40 -05:00
..
notifier.go notifier: Consider alert relabeling when deciding if alerts are dropped 2025-02-26 09:05:40 -05:00
notifier_test.go notifier: Consider alert relabeling when deciding if alerts are dropped 2025-02-26 09:05:40 -05:00