Comments (8)
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.
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.
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.
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.
Hi @TwiN
What is your opinion about this? How should we proceed?
from gatus.
This is exactly what I am missing in this tool. Would love to see it in action.
from gatus.
Related issue: #379
from gatus.
Yep - this is a duplicate of #379.
Please 👍 the aforementioned issue if you'd like to see this added.
from gatus.
Related Issues (20)
- Notifications via AppRise
- Yaml parse error when volume are mounted via configmap or secret on kubernetes
- ICMP not working on Kubernetes even if sysctl -w net.ipv4.ping_group_range="0 2147483647" HOT 11
- Line Notify request HOT 6
- How many endpoint-defaults setting can be set ? only one setting ? HOT 1
- Docker DNS server - Server misbehaving HOT 2
- TestPing failures when running during docker container build
- Use of EXPOSE causes unnecessary port being opened when changing port from default HOT 1
- Support go templating in alerting HOT 2
- Consider Adding Full Support For Pushover Priority 2 Alerts
- Gatus in Docker Container Healthcheck HOT 1
- 1 year uptime badge HOT 4
- feat(alerting): Overriding telegram id and token HOT 1
- Gatus crashes when json inquiry returns null value HOT 1
- Add Telegram Topic ID
- Implement endpoints whose results are pushed into Gatus externally HOT 2
- fix(ssh): Support authless connection
- Monitoring: quick overview
- [FEATURE REQUEST] Add the possibility to send notifications at startup
- fix: Add `crossorigin="use-credentials"` to the manifest.json link in index.html HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatus.