Skip to content

Alerta No Send Resolve #4251

Open
Open
@vinfry

Description

@vinfry

Good day,

I have started to face weird issues after upgrading Alertmanager to the latest version:

0.28.0

I have a lot of alert rules and different receivers, the one which is in problem is alerta. The "resolve" message is not sent to Alerta and the alert appears in Alerta until I delete it. I could not track why this is happening and the most amazing thing is that it happens at random times.
Here is receiver config in /etc/alertmanager/alertmanager.yml :

  • name: 'alerta'
    webhook_configs:
    • url: 'http://$alerta_host:8080/webhooks/prometheus?api-key=$KEY'
      send_resolved: true

Debug logs of successful sending of the same alert id:

Feb 08 20:21:49 $host alertmanager[1325]: time=2025-02-08T18:21:49.027Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=receiver integration=email[1] $redacted attempts=1 duration=49.21519ms alerts=[$alertname[d560a81][active]]
Feb 08 20:21:49 $host alertmanager[1325]: time=2025-02-08T18:21:49.027Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=receiver integration=email[0] $redacted attempts=1 duration=49.184398ms alerts=[$alertname[d560a81][active]]
Feb 08 20:21:49 $host alertmanager[1325]: time=2025-02-08T18:21:49.051Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=alerta integration=webhook[0] $redacted attempts=1 duration=72.965561ms alerts=[$alertname[d560a81][active]]

some debug logs...

Feb 08 20:26:49 $host alertmanager[1325]: time=2025-02-08T18:26:49.006Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=receiver integration=email[0] $redacted attempts=1 duration=21.456558ms alerts=[$alertname[d560a81][resolved]]
Feb 08 20:26:49 $host alertmanager[1325]: time=2025-02-08T18:26:49.017Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=receiver integration=email[1] $redacted attempts=1 duration=32.341313ms alerts=[$alertname[d560a81][resolved]]
Feb 08 20:26:49 $host alertmanager[1325]: time=2025-02-08T18:26:49.160Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=alerta integration=webhook[0] $redacted attempts=1 duration=175.729277ms alerts=[$alertname[d560a81][resolved]]

The next one failed to send "resolve":

Feb 10 15:58:19 $host alertmanager[1325]: time=2025-02-10T13:58:19.005Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=$receiver integration=email[0] $redacted attempts=1 duration=15.78611ms alerts=[$alertname[d560a81][active]]
Feb 10 15:58:19 $host alertmanager[1325]: time=2025-02-10T13:58:19.007Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=$receiver integration=email[1] $redacted attempts=1 duration=17.254232ms alerts=[$alertname[d560a81][active]]
Feb 10 15:58:19 $host alertmanager[1325]: time=2025-02-10T13:58:19.038Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=alerta integration=webhook[0] $redacted attempts=1 duration=48.615119ms alerts=[$alertname[d560a81][active]]

some debug logs...

Feb 10 16:03:19 $host alertmanager[1325]: time=2025-02-10T14:03:19.009Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=$receiver integration=email[0] $redacted attempts=1 duration=18.54338ms alerts=[$alertname[d560a81][resolved]]
Feb 10 16:03:19 $host alertmanager[1325]: time=2025-02-10T14:03:19.010Z level=DEBUG source=notify.go:876 msg="Notify success" component=dispatcher receiver=$receiver integration=email[1] $redacted attempts=1 duration=20.019582ms alerts=[$alertname[d560a81][resolved]]
Feb 10 16:03:49 $host alertmanager[1325]: time=2025-02-10T14:03:49.098Z level=DEBUG source=dispatch.go:165 msg="Received alert" component=dispatcher alert=$alertname[d560a81][resolved]

I have debugged a few cases and found nothing that could help. No errors, nothing in TCP traces about rejected connections or similar.
As for Alertmanager itself, those alerts disappear without any problems.
If you need some additional info please let me know.

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