GithubHelp home page GithubHelp logo

Comments (8)

bugrakocabay avatar bugrakocabay commented on June 18, 2024 1

Hi @mxcd ,
so what you have in mind is, having the flexibility to have different time intervals for the initial alert and subsequent reminders. For instance, you want the first alert to trigger after 3 failures (in our example, that would be after 3 minutes). But for the consecutive reminders, you want it less frequent, say, once every day instead of every 3 minutes.

If so, I think having this kind of configuration would solve it;

alerts:
      - type: discord
        description: "healthcheck failed"
        send-on-resolved: true
        failure-threshold: 3
        reminder-interval: 1d

from gatus.

mxcd avatar mxcd commented on June 18, 2024 1

Hi @bugrakocabay,

that's exactly what I had in mind. Although I also see a use-case for your consecutive: true logic in case of super-critical systems or applications.

I would opt for having both options, unless @TwiN would veto due to the configuration becoming too cluttered by offering both.

If keeping it lean is desired, I'd suggest just implementing the reminder-interval due to it's higher flexibility since it can also achieve the "3 minute consecutive reminders"

from gatus.

bugrakocabay avatar bugrakocabay commented on June 18, 2024

Maybe adding a bool flag named consecutive under alerts, that will allow sending notification on every
failure-threshold's multiple.

alerts:
      - type: discord
        description: "healthcheck failed"
        send-on-resolved: true
        failure-threshold: 2
        consecutive: true

If this works, I can implement it.

from gatus.

mxcd avatar mxcd commented on June 18, 2024

Hi @bugrakocabay,
although your interpretation of consecutive in terms of wording is probably more precise, it is not exactly what I intended with this feature request.
I would imagine it to be quite annoying to be notified in the interval of the failure threshold.
Example:

interval: 60s
failure-threshold: 3

This would result in a new notification every 3 minutes.
If I would want a notification every day (as a gentle reminder to fix something that is broken) I would not be able to configure this while keeping acceptable initial triggering times.
Any thoughts on this?

from gatus.

bugrakocabay avatar bugrakocabay commented on June 18, 2024

Hi @TwiN

What is your opinion about this? How should we proceed?

from gatus.

AreebSiddiqui avatar AreebSiddiqui commented on June 18, 2024

This is exactly what I am missing in this tool. Would love to see it in action.

from gatus.

amai2012 avatar amai2012 commented on June 18, 2024

Related issue: #379

from gatus.

TwiN avatar TwiN commented on June 18, 2024

Yep - this is a duplicate of #379.
Please 👍 the aforementioned issue if you'd like to see this added.

from gatus.

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.