Open
Description
How to recreate the scenario:
- Configure the receiver and route. (I used slack as the receiver)
- Send an alert to the alertmanager. You should receive some notification on your receiver.
- Now, make changes in the alertmanager's configuration(try
group_by
ormatchers
) and call the/-/reload
endpoint.
Now, you will receive the notifications for the same alerts again.
NOTE: These behaviours are only observed when the same alerts exist in alertmanager's cache and the configuration is reloaded.
Expected Behavior:
We should not get notifications for alerts that we have previously received.
Solutions:
- Alertmanager's cache should be cleaned once the
/-/reload
endpoint is called. - Alertmanager should additionally provide a way to remove its cache. Probably, a endpoint
/-/clear
- Alertmanager should additionally maintain track of the alerts that have previously been notified and deliver notifications in response to reloads.