Git Product home page Git Product logo

Comments (4)

grobinson-grafana avatar grobinson-grafana commented on September 2, 2024

Hi! 👋 Thanks for opening this issue. I assume these Alertmanagers are clustered using the --cluster flags. If not, please make sure that clustering is configured using https://github.com/prometheus/alertmanager#high-availability as a reference.

This sounds like expected behavior to me. What has happened here is when Alertmanagers are clustered together they assume positions like position 0, 1, etc. The Alertmanager in position 0 will try to send the notification first, while the Alertmanager in position 1 will wait a timeout called --peer-timeout (default 15s). If the Alertmanager in position 0 cannot send the notification within --peer-timeout seconds then the Alertmanager in position 1 will try to send it as well.

In cases such as this, Alertmanager can send duplicate notifications. Most important is that Alertmanager guarantees to send a notification at least once, but it can send the same notification more than once.

from alertmanager.

zeno420 avatar zeno420 commented on September 2, 2024

Hey @grobinson-grafana, thanks for the quick reply! AFAIK alert managers should be clustered automatically by using more than one replica in a Kubernetes cluster.

While I agree that most times "Most important is that Alertmanager guarantees to send a notification at least once" is true, in my use case it's not. Do you know of any way to alter the behavior so it will always only send one alert?

If not I'll accept "expected behavior" as an answer and this issue can be closed. Thanks in advance!

from alertmanager.

grobinson-grafana avatar grobinson-grafana commented on September 2, 2024

Hi! 👋 No it's not possible to change the behavior without disabling clustering / HA, and even that does not guarantee exactly-once behavior. This is fundamental to how Alertmanager works.

from alertmanager.

zeno420 avatar zeno420 commented on September 2, 2024

ight, thanks!!

from alertmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.