Skip to content

Alertmanager resends the notifications after reloading the configuration #3410

Open
@ShreyanshMehta

Description

@ShreyanshMehta

How to recreate the scenario:

  1. Configure the receiver and route. (I used slack as the receiver)
  2. Send an alert to the alertmanager. You should receive some notification on your receiver.
  3. Now, make changes in the alertmanager's configuration(try group_by or matchers) 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:

  1. Alertmanager's cache should be cleaned once the /-/reload endpoint is called.
  2. Alertmanager should additionally provide a way to remove its cache. Probably, a endpoint /-/clear
  3. Alertmanager should additionally maintain track of the alerts that have previously been notified and deliver notifications in response to reloads.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions